I am looking to submit data as two independent form submissions from one page and one submit button on that page. Can anyone help with a javascript function along the following lines.
The page would have one form called "referralform". The page would be contained in the second of two frames. Frame one would be hidden and frame two would contain my page and form.
The form, named "referralform" would have the following fields, named according to their content
firstname
firstname2
lastname
lastname2
email
secondemail
id [this is a hidden field]
The function should accomplish the following:
Copy the contents of the form fields in frame two to specific fields in a form in frame one, and finally submit the form in both frames.
Tha value of the fields in frame 2 would have to be copied or "mapped" to the following values in frame1:
For Frame 1:
firstname goes into field named referrerfirstname
firstname2 goes into field named firstname
lastname goes into field named referrerlastname
lastname2 goes into field named lastname
email goes into field named referreremail
secondemail goes into field named email
Both frames 1 and 2 will submit to the same action.
All help is greatly appreciated.
Thanks.
The page would have one form called "referralform". The page would be contained in the second of two frames. Frame one would be hidden and frame two would contain my page and form.
The form, named "referralform" would have the following fields, named according to their content
firstname
firstname2
lastname
lastname2
secondemail
id [this is a hidden field]
The function should accomplish the following:
Copy the contents of the form fields in frame two to specific fields in a form in frame one, and finally submit the form in both frames.
Tha value of the fields in frame 2 would have to be copied or "mapped" to the following values in frame1:
For Frame 1:
firstname goes into field named referrerfirstname
firstname2 goes into field named firstname
lastname goes into field named referrerlastname
lastname2 goes into field named lastname
email goes into field named referreremail
secondemail goes into field named email
Both frames 1 and 2 will submit to the same action.
All help is greatly appreciated.
Thanks.