S
simora
Hi:
Need some working sample code to post hidden form data from a php page
to a new popup window. 540 x 500 centered. The popup that I'm calling
already is formatted and has a TITLE:web-2007.php so what I need to do
is to write the values from the PHP page to that popup in specific
places.
Some of the hidden values are also like this format;
<input type="hidden" name="handling" value="<?php echo $_POST["sub"];
?>">
<input type="hidden" name="email" value="<?php echo $_POST["email"];
?>">
Right now,the hidden input fields are on a PHP page, and I'm calling the
popup from the generated PHP page like so:
<A HREF="javascript:void(0);" style="TEXT-DECORATION: none"
onClick="popUpCenteredWindow();"> <span style="color: blue; font-
family: Verdana;"> Click Here </span></span></A></font>
<script language="JavaScript">
function popUpCenteredWindow() {
var iMyWidth;
var iMyHeight;
//gets top and left positions .
iMyWidth = (window.screen.width/2) - (200 + 10);
//half the screen width etc..
iMyHeight = (window.screen.height/2) - (255 + 1);
//half the screen height etc...
var win2 = window.open("web-2007.php","Window2","status,height=
540,width=500,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight +
",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
win2.focus();
}
</script>
Need help. Thanks
Need some working sample code to post hidden form data from a php page
to a new popup window. 540 x 500 centered. The popup that I'm calling
already is formatted and has a TITLE:web-2007.php so what I need to do
is to write the values from the PHP page to that popup in specific
places.
Some of the hidden values are also like this format;
<input type="hidden" name="handling" value="<?php echo $_POST["sub"];
?>">
<input type="hidden" name="email" value="<?php echo $_POST["email"];
?>">
Right now,the hidden input fields are on a PHP page, and I'm calling the
popup from the generated PHP page like so:
<A HREF="javascript:void(0);" style="TEXT-DECORATION: none"
onClick="popUpCenteredWindow();"> <span style="color: blue; font-
family: Verdana;"> Click Here </span></span></A></font>
<script language="JavaScript">
function popUpCenteredWindow() {
var iMyWidth;
var iMyHeight;
//gets top and left positions .
iMyWidth = (window.screen.width/2) - (200 + 10);
//half the screen width etc..
iMyHeight = (window.screen.height/2) - (255 + 1);
//half the screen height etc...
var win2 = window.open("web-2007.php","Window2","status,height=
540,width=500,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight +
",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
win2.focus();
}
</script>
Need help. Thanks