Javascript (window.open) with a PHP Variable
Posted: Thu Feb 26, 2004 12:16 pm
I am attempting to open a new window using javascript while passing a PHP variable to that window. I've tried several different ways to no avail.
Here is my latest try...
Can this be done?
Here is my latest try...
Code: Select all
<script language="JavaScript" type="text/javascript">
<!--
function popUpCenteredWindow() {
var win2;
//opens a new window with no menubar or resize ability.
var win2 = window.open("edit_game2.php?id=<?=$phpvar?>",
"Window2","height=120,width=530,menubar=no,resizable=no,scrollbars=no,status=no");
win2.focus();
}
//-->
</script>