Hello,
This problem is not exactly php related but I'm so frustrated I thought someone might be able to help.
I basically want to open a new window when a submit button is clicked.
I have two POST statements after the script. The one that calls the javascript is not passing the variables. The one that calls the brochure.php page sends the variable "rating" fine.
Why is it passing the variable with brochure.php and not when I try to use the javascript resized popup window?
Any help would be appreciated,
thanks,
Gary
<SCRIPT language="JavaScript">
<!--
function my_win()
{
window.open('rate_site.php','mywindow','width=450,height=450,top=25,left=25,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
}
//-->
</SCRIPT>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<!-- <td height="20" align="left" valign="middle"><form method="POST" action="javascript:my_win()"> -->
<td height="20" align="left" valign="middle"><form method="POST" action="brochure.php" target="_blank">
<select name="rating" size="1">
<option selected> Rate This Web Site </option>
<option>-----------------------------</option>
<option value="5">5 - Excellent </option>
<option value="4">4 - Very Good </option>
<option value="3">3 - Good </option>
<option value="2">2 - OK </option>
<option value="1">1 - Fair </option>
</select> <input type="submit" value=" GO "></form></td>
</tr>
</table>