Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple forms in one submit

Status
Not open for further replies.

camillaj

Programmer
Sep 18, 2003
31
AU
I'm trying to submit 2 forms to the same page with only one submit button. The reason I have 2 forms is that my asp page wouldn't recognise the start and end tag of the single form (maybe because I have a asp include in between).

So I tried with this:

function SubmitInfo() {

document.forms["form1"].action = "SubmitTemplate.asp";
document.forms["form2"].action = "SubmitTemplate.asp";
document.forms["form1"].submit();
document.forms["form2"].submit();

}

----
But it only submits form2. Is there a way I can submit them both to that other asp page?

Thanks :)
 
u cannot do submit two forms to the same asp. there is a workaround but its simply stupid. anyway why would u want an include somewhere inbetween the form? and if i am correct that should not affect ur form code at all...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top