6100
asked on
Submitting Two Forms with one click
Is it possible to send two forms with one click?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
asked on
Submit form #1 in the visible frame (that is the 100% sized one )
Submit form #2 in the invisible frame
Make it so the response from the appropriate form is submitted in the visible frame.
This will in effect submit one of the forms in the background...
Oh yeah....how to submit them both on the same click. Have them click the submit button for one of the forms. Give this form the event
onSubmit=" return myfunction()"
now here is the function:
function myfunction() {
document.thesecondformname
return true;
}
now straight above the second form write in the line:
<base target="parent.hiddenframe
This will rifle this form off with the response directed at the hidden frame. I hope this helps you...
The answer above doesn't seem to be very specific...
if you want any further explaination just comment this question and I will come check it out.
Pete