View Single Post
Old 09-28-2012, 04:53 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,376
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Your code for the calling window:
Code:
<!DOCTYPE html>
<html>
<head>
<script>
function open_win()
{
window.open("test_3.php?myvar=hello");
}
</script>
</head>

<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>
</html>
The window it opens is like this:

PHP Code:
<?php
$bill 
$_GET["myvar"];
echo 
$bill;
?>
sunfighter is offline   Reply With Quote