Joshua4550 Posted May 19, 2010 Share Posted May 19, 2010 Is it possible to use one form inside another? such as: <form method="POST"> <form method="POST"> <input type="text" name="1" value="1" /> <input type="submit" value="Go" /> </form> <form method="POST"> <input type="text" name="2" value="2" /> <input type="submit" value="Go" /> </form> <input type="submit" value="All" /> </form> Would this work? (What was intended is that the final submit button would submit information from all forms inside that one whole form) Thanks. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted May 19, 2010 Share Posted May 19, 2010 Nope. Nested forms are invalid HTML. Quote Link to comment Share on other sites More sharing options...
haku Posted May 20, 2010 Share Posted May 20, 2010 As PMfbans said, you can't nest forms. What you do is put it all in one form, then sort it out on the processing side according to what button was pushed. Quote Link to comment Share on other sites More sharing options...
Joshua4550 Posted May 22, 2010 Author Share Posted May 22, 2010 Okay. Seems more logical that way anyway, I guess. Ty. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.