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
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