I want to call two extern cgi-scripts and submitting the same form data.
The one cgi-script could redirect back to one of my pages but how can i
get back the entered formular data?
Here's my non working try (firstForm will not be submitted):
The one cgi-script could redirect back to one of my pages but how can i
get back the entered formular data?
Here's my non working try (firstForm will not be submitted):
Code:
<script type="text/javascript">
function beforeSubmit() {
// copy user entered data from FirstForm to SecondForm
document.secondForm.Submit();
return true;
}
</script>
<form name="firstForm" action="cgi-bin/mailmanager.pl" method="POST" onsubmit="return beforeSubmit()">
<!-- user input form -->
</form>
<form name="SecondForm" action="[URL]https://www.paypal.com/cgi-bin/webscr[/URL]" method="post">
<!-- hidden form -->
</form>