sav Posted February 2, 2006 Share Posted February 2, 2006 hi im newish to all this but was wondering ...if there is a way to split up a form so that elements of a single form do not have to be contained within a single set of <FORM></FORM> tags?This would be extreemly helpfull in setting up the layout of pages so that elements of a common form do not have to be grouped together in the same areathanks in advancesav. Link to comment Share on other sites More sharing options...
aspnetguy Posted February 2, 2006 Share Posted February 2, 2006 If you are using HTML,ASP, or PHP you can use multiple forms on a page...ASP.Net however only allows 1 form per page. Link to comment Share on other sites More sharing options...
sav Posted February 2, 2006 Author Share Posted February 2, 2006 If you are using HTML,ASP, or PHP you can use multiple forms on a page...ASP.Net however only allows 1 form per page.<{POST_SNAPBACK}> Hi, Sorry I didnt make myself clear. I am trying to use PHP to do something like this:<FORM Name="sameForm" ACTION="./otherPage.php" METHOD="POST"> <INPUT TYPE=TEXT NAME="one"></FORM><!-- Other Forms and Things In Here --><FORM Name="sameForm"> <INPUT TYPE=TEXT NAME="two"> <INPUT TYPE=SUBMIT VALUE="Submit"></FORM> where when you click submit, the elements of both sections get POSTed to the otherPagethanks Link to comment Share on other sites More sharing options...
aspnetguy Posted February 2, 2006 Share Posted February 2, 2006 you could acheive this with javascript but it would be far more complicated than just placing them all in one form.And 2 forms cannot have the same name. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now