levidyllan
Programmer
i have this form that opens up a window when clicked and i want to pass the form details across to it, but as i am using Javascript to open the window its not working now.
heres the script code:
heres the form code:
but the post effect wont work now, i am using on the other page
but nothing its not picking up the form details ect
heres the script code:
Code:
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=450,height=500,left = 362,top = 134');");
}
</script>
heres the form code:
Code:
<form method="post">
<input type="hidden" name="link" value="<? $link ?>" />
<input type="hidden" name="code" value="<? $code ?>" />
<input type="hidden" name="codea" value="<? $codea ?>" />
<input type="hidden" name="codea" value="<? $detail ?>" />
<p><input type="button" value="Open the Popup Window" onClick="javascript:popUp('updatemain.php')"></p></form>
but the post effect wont work now, i am using on the other page
Code:
$var=$_POST['link']; etc
but nothing its not picking up the form details ect