Embed an HTML <form> within a larger <form>?
Posted
by MikeN
on Stack Overflow
See other posts from Stack Overflow
or by MikeN
Published on 2009-11-18T20:52:23Z
Indexed on
2010/05/05
13:58 UTC
Read the original article
Hit count: 159
html
I want to have an HTML form embedded in another form like so:
<form id="form1">
<input name="val1"/>
<form id="form2">
<input name="val2"/>
<input type="button" name="Submit Form 2 ONLY">
</form>
<input type="button" name="Submit Form 1 data including form 2">
</form>
I need to submit the entirety of form1, but when I submit form2 I only want to submit the data in form2 (not everything in form1.) Will this work?
© Stack Overflow or respective owner