Hi,
I have a php page, with a form on, I want people to be able to fill out the form, and then either press submit, in which case the form is submitted, which is easy to do, or press preview, in which case, a popup window opens, with the details in, to preview. My problem is, the popup page doesn't have the values entered into the form, bescause the values are not parsed to the popup page. I am using the following code to open the window..
<input type="button" onclick="mywin=window.open(\'preview.php?name='.$name.'&address1='.$address1.'&address2='.$address2.'&city='.$city.'&message='.$message.'\', \'winname\', \'width=320,height=200,scrollbars=no,menubar=no,location=no,status=no,resizable=no,toolbars=no\');" name="view" value="View Design">
But the $name,$address1,etc variables do not get parsed. Someone said I should use something like..
onClick="window.open(\'preview.php?name='+form1.name.value+'&address1='+form1.address1.value+'....
However I can not seem to get this to work. Does anyone know how?
Regards
Ben