|
|
Q190 How do you combine two forms before submitting them as one form?
irt.org | Knowledge Base | JavaScript | Form 10.2 | Q190 [ previous next ] Q190 How do you combine two forms before submitting them as one form?In one of the forms, or perhaps in a third form, have hidden form fields which you can then copy the contents of the visible form fields to and then submit that form. You'll need to trap the users form submission and cancel it, and then you'll need to copy the data, and then you'll need to submit the require form:
Note, if the action of the third form is mailto: then it'll fail without telling you (a security hobble). Any onSubmit event handler of the third form will not be invoked, so make sure you perform your form validation before the line document.formthree.submit() Feedback on 'Q190 How do you combine two forms before submitting them as one form?' |
-- div -->
|