表单嵌套,是否是错误呢? 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() 这样发送 php+oracle分页offset值一直为1不能传递的问题 求 下一条记录 各位怎么拼sql的 php字符编码的问题 jsp传参数到php页面 php+mysql 数据库操作类 在preg_replace正则匹配的时候为什么会多出一个“?”号 传值的一些问题 学php需要什么基础? 在win98下以sapi安装apache1.3.x+php420rc3的时候,php解释很慢,最后显示找不到文件,why??? 链接地址的问题.怎么解决 关于使用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() 这样发送