tags:

views:

46

answers:

4

If the forms are nested ,i'm not able to submit it 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 submit button in ie6. Not: But i can't avoid the nesting of forms.this code is just a sample

Thanks in advance!

+2  A: 

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.

David Dorward
thanks david for a lightning response
jaan
+1  A: 

nested forms cannot be used

chugh97
+1  A: 

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

Dormilich
+1  A: 

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.

Developer Art
While that is true … HTML 3.0 was an abandoned specification that never made it to Recommendation status and shouldn't be referenced for anything related to real world implementations.
David Dorward