Code: Select all
$link_popup = "<a href='x.php' onclick='window.open('x.php','popup','width=500,height=400,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false'>Test Popup</a><BR>";
echo $link_popup . "<BR>";I when I use it only in html, it works, but I would like to pass a php variable to the new window too.
Code: Select all
?>
<a href="x.php" onclick='window.open('x.php','popup','width=500,height=400,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false'>Test Popup</a>
<?phpthanks!