When I set the action of my form to the processing page, everything works great. But if I use a javascript to open the processing page in a new window, the form data is not passed. What should I do?
Here is the Javascript:
<script language="JavaScript" type="text/JavaScript">
<!--
function openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
</script>
Here is the form code:
<form name=number method=post>
Number of Tickets: <input type=text size=3 maxlength=3 name=number value="1"> <input type=submit value=Submit onClick="openBrWindow('</form>
Here is the Javascript:
<script language="JavaScript" type="text/JavaScript">
<!--
function openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
//-->
</script>
Here is the form code:
<form name=number method=post>
Number of Tickets: <input type=text size=3 maxlength=3 name=number value="1"> <input type=submit value=Submit onClick="openBrWindow('</form>