starbase2
asked on
Have one form with two different submit destinations
Hello,
I have a standard form on a asp page and I need to have the option to send it to an alternate destination page. How can I do this? I've tried with a button that opens a new window but I don't know how to capture the different form values and send it to this new opened window.
Can anyone help me with this?
Thanks a lot and kind regards.
Oscar
I have a standard form on a asp page and I need to have the option to send it to an alternate destination page. How can I do this? I've tried with a button that opens a new window but I don't know how to capture the different form values and send it to this new opened window.
Can anyone help me with this?
Thanks a lot and kind regards.
Oscar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sure, just change the function to:
<script language="javascript">
function submitData() {
document.frmName.action = 'somePage.asp';
document.target = 'blank';
document.submit();
}
</script>
ASKER
Thanks a lot.