Forum Moderators: open
Here's what I mean. Let's say I have FORMS variables set up like this:
<input type=TEXT NAME=first_name><br>
<input type=TEXT NAME=last_name><br>
With one click (one submit) I want to pass these variable names to offsite URLS that are set up to accept and process these variable names.
For example - (these don't work but are provided for example only) I may have a FORM tag like this
<FORM ACTION="https://some_outside_url_1.com" METHOD=POST>
and I might have another FORM tag like this
<FORM ACTION="https://some_outside_url_2.com" METHOD=POST>
As you can see I'd be passing the data in SECURE mode.
Is there any way to make both actions occur with ONE SUBMIT button? If not, how can I make it easy on my visitors so they don't have to click two different SUBMIT buttons on two different pages to get the job done for me?
Thank you for any help you can give.
David
alternatively, you could open two windows or something, but that is a little painful instead of being painless.
e.g.
<FORM name="myForm2Name" ACTION="https://some_outside_url_2.com" METHOD=POST>
<input type=hidden NAME=first_name>
</form>
Then the form button:
<a href="javascript:submitMyForms()">
where
function submitMyForms() {
document.myForm1Name.submit();
then some code to copy the entries
in form 1 to the hidden entries
in form 2...
document.myForm2Name.submit();
}
I think that will work, although there may be a more elegant way, especially if you can do it from the server side as Craig suggests.
Shawn