there must be only one form in one page.

解决方案 »

  1.   

    zeroleonhart(没有螺母的螺丝钉) ( ) 信誉:100  2006-6-13 9:46:20  得分: 0     
    there must be only one form in one page.
    不是吧,一个页中可以有多个表单,只要用NAME属性加以区别就可以
    希望我对你的英文的意思没理解错误
     
      

  2.   

    一个网页中可以都多个form,但是名字不能一样。form不能嵌套
      

  3.   

    表单是可以“嵌套”的,但是并不能达到你的目的。浏览器会把“嵌套”的表单当作一个表单处理
    示例
    <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);
    ?>
    随便你点击哪个提交按钮,都将得到同样的结果
      

  4.   

    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???
      

  5.   

    嵌套的时候,只有最近的一个表单,即是底下的那个起作用,如果有特殊用途的,你没必要那样写法
    或者当form指定name时用 document.formname.submit() 这样发送