Hi:
Need sample code to post form data 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 on the php sending page are like this format;

<input type="hidden" name="Sub" 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:


Code:
<A HREF="javascript:void(0);" style="TEXT-DECORATION: none" onClick="popUpCenteredWindow();"><B>&nbsp;&nbsp;Click Here &nbsp;</A>

<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>
What I need to see is sample code on how to send the values to either the popup directly, or have a way for the popup to get the values from a server.

Working Code examples and ideas welcome.

Thanks