Nesting forms

windows

Guest
I am wanting to have a seperate form in the middle of another form, i cant think of any other way to do it as I'm using tables. Below is a diagram of what i mean:<br />
<br />
|-------------|-------------|<br />
| | |<br />
| | |<br />
| FORM 1 | FORM 2 |<br />
| | |<br />
| | |<br />
|-------------|-------------|<br />
| |<br />
| FORM 1 CONTINUED |<br />
| ... |<br />
| ... |<br />
| ... |<br />
| ... |<br />
| |<br />
|---------------------------|<br />
<br />
would the following work? (where the first submit button submits form 2)<br />
<br />
<form name=form1 ...><br />
...<br />
...<br />
...<br />
<form name=form2 ...><br />
...<br />
...<br />
...<br />
<input type=submit><br />
</form><br />
...<br />
...<br />
...<br />
<input type=submit><br />
</form><br />
<br />
Thanks in advance for any help!<!--content-->hi, sorry i don't have the answer, but i'm just interested as to why you need two forms on 1 page?<br />
not saying you shouldn't, i'm just interested as to what you're doing really.<!--content-->I'm writing a webmail script and I want it so the left hand side is for to/cc/Subject etc. and on the right it will list and deal with attachments (by means of a pop-up box that will be opened when form 2 is submitted), the main box below is for the body...<br />
<br />
I think I'm going to have to think of a better way to do this but I can't be arsed! (plus i'm curious if the above would work)<!--content-->If I am recalling correctly it is impossible to nest forms.<!--content-->Nesting of forms is possible, but not advisable. In XHTML1 (<!-- m --><a class="postlink" href="http://www.w3.org/TR/xhtml1/#prohibitions">http://www.w3.org/TR/xhtml1/#prohibitions</a><!-- m -->) it is prohibited.<!--content-->Cheers anyway, iv'e changed my mind now :)<!--content-->
 
Back
Top