I would agree, two different submits with one form.
You could do that with iframes....but I have never been a big fan. Remember that anything that you can do with an Iframe, you can also do with another window
here is what I would do:
open up another window with the same form in it, but all the fields are hidden. Then populate the value's of this page from the original form, and submit the new form. Then, close the window and submit the original form (to the other source).
You could make this almost unseen to the user...however, you might have trouble with popup blockers.
Also, if you did it like this:
Code:
newWindow = window.open(..."newWindow"...);
window.focus();
populateForm("newWindow");
newWindow.someForm.submit();
newWindow.close();
the user probably wouldn't even notice the script in action.....
"Why is it always the quiet ones?"
Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
AIM & MSN: robacarp