时间:2021-07-01 10:21:17 帮助过:15人阅读
给你附一个例子
<form action="#" enctype="multipart/form-data" method="post" name="biaodan" onsubmit="return comfirm()"> <p class="bm_bt"> <p class="bm_bt1">姓名:<input type="text" name='names' id='names' class='intxt' value=''/> <span class="bm_s1">*请输入正确的联系方式 </span> </p> <p class="bm_bt1">电话:<input type="text" name='tels' id='tels' class='intxt' value=''/> <span class="bm_s1">*请输入正确的名字 </span> </p> <p class="bm_bt1">Q Q:<input type="text" name='qqs' id='qqs' class='intxt' value=''/> <span class="bm_s1">请输入您的QQ号 </span> </p> <p class="bm_bt1">备注:<input type="text" name='others' id='others' class='intxt' value=''/> <span class="bm_s1">如有问题请留言</span> </p> <input type='text' name='datas' id='datas' style='border:0 none; display:none;' class='intxt' value='' /> <input type='text' name='times' id='times' style='border:0 none; display:none;' class='intxt' value='' /> </p> <p class="bm_ft"> <p class="bm_ft1"><input type="submit" name="submit" class='coolbg' value=" "/> </p> </p> </form>
以上就是php表单如何构建?的详细内容,更多请关注Gxl网其它相关文章!