表单嵌套,是否是错误呢? there must be only one form in one page. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 zeroleonhart(没有螺母的螺丝钉) ( ) 信誉:100 2006-6-13 9:46:20 得分: 0 there must be only one form in one page.不是吧,一个页中可以有多个表单,只要用NAME属性加以区别就可以希望我对你的英文的意思没理解错误 一个网页中可以都多个form,但是名字不能一样。form不能嵌套 表单是可以“嵌套”的,但是并不能达到你的目的。浏览器会把“嵌套”的表单当作一个表单处理示例<form method=post>表单1<br><input type=text name=t1 value=1><input type=submit><br><form method=post>表单2<br><input type=text name=t2 value=2><input type=submit><br><form method=post>表单3<br><input type=text name=t3 value=3><input type=submit><br></form></form></form><?phpprint_r($_POST);?>随便你点击哪个提交按钮,都将得到同样的结果 sorry,it should be only one form with one name in one pagewhen you use a form contains a sub form,how would the name of the sub form be when submits??? 嵌套的时候,只有最近的一个表单,即是底下的那个起作用,如果有特殊用途的,你没必要那样写法或者当form指定name时用 document.formname.submit() 这样发送 file_exists 不支持中文和日文路径 php上传下载程序的问题,高手帮忙小弟先谢了 关于字符匹配的问题,比较头疼 正则表达式的问题? PHP伪静态页问题! (在线等)PHP关于时间差的问题! 关于安装appserv问题! config.php的加载问题 intval 是将变量转换为整数的函数,如intval($a/$b),请问:它是否将结果四舍五入了? php进制转换求指点,16进制转为10进制问题 链接地址的问题.怎么解决 关于使用GD库进行图像缩放的问题
there must be only one form in one page.
不是吧,一个页中可以有多个表单,只要用NAME属性加以区别就可以
希望我对你的英文的意思没理解错误
示例
<form method=post>
表单1<br>
<input type=text name=t1 value=1>
<input type=submit><br>
<form method=post>
表单2<br>
<input type=text name=t2 value=2>
<input type=submit><br>
<form method=post>
表单3<br>
<input type=text name=t3 value=3>
<input type=submit><br>
</form>
</form>
</form><?php
print_r($_POST);
?>
随便你点击哪个提交按钮,都将得到同样的结果
或者当form指定name时用 document.formname.submit() 这样发送