开发者

I am not able to submit nested forms in IE6

If the forms are nested, I’m not able to submit them in IE6.

<html> <body> <form id="mainform" action="form_action.asp"> <form id="subform" action="form_action1开发者_如何学运维.asp"> <input type="submit" name="FirstName12" value="Mickey" /><br /> </form> First name: <input type="text" name="FirstName" value="Mickey" /> <br/> Last name: <input type="text" name="LastName" value="Mouse" /> <br/> <input type="submit" value="Submit" /> </form> </body> </html>

I’m not able to submit the mainform using the submit button in IE6. However, I can’t avoid the nesting of forms. This code is just a sample.


Forms cannot be nested in HTML.

<!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->

Note that "FORM" is explicitly excluded from the list of things that may be in a form above.

Browsers try to recover from errors, and do so to various degrees, but garbage in, garbage out.


Nested forms are not supported in HTML standard.

From The FORM element

There can be several forms in a single document, but the FORM element can't be nested.


nested forms cannot be used


forms are not allowed to be nested. (i.e. your subform will be gracefully ignored)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜