I am trying to use a pop up window to collect data. I have a main menu which when I select the link it would open a pop up window then I would collect some data.I would like to then pass it back to the main window on a new page having access to the data. I have tried javascript but it does not pass the variable along.
<head>
<title>Quote Step 1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = true;
for (i=0; i<(args.length-1); i+=2) eval(args+".location='"+args[i+1]+"'");
}
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
//-->
</script>
</head>
<body bgcolor="#000066" text="#FFFFFF">
<form method="post" action="QuoteStep2.php">
<table width="286" border="0" cellpadding="0" cellspacing="0" height="112" align="center" vspace="200">
<tr valign="top">
<td colspan="2" height="27">
<div align="left"><b><font color="#FFFFFF" face="Arial, Helvetica, sans-serif" size="4"><font color="#FFCC66">Quote
Step 1</font><br>
</font></b></div>
</td>
</tr>
<tr>
<td height="2" width="114">
<div align="right"><font face="Arial, Helvetica, sans-serif" color="#000066"><b><font color="#FFFFFF">How
many?</font></b></font></div>
</td>
<INPUT TYPE="hidden" NAME="table_name" VALUE=Estimates SIZE=30></p>
<td height="2" width="126">
<input type="text" name="num_fields" size="6">
</td>
</tr>
<tr>
<td width="114"> <img src="images/info.gif" width="20" height="20" onClick="MM_popupMsg('Enter the number of variations of the quote you want to do.')"></td>
<td width="126">
<div align="right">
<input type="submit" name="Submit" value="Go to Step 2" onClick="javascript:window.opener.location='QuoteStep2.php?num_fields=6'">
</div>
</td>
</tr>
</table>
<div align="center"></div>
</form>
</body>