RE: [PHP] Creating pop-up window and passing variable to it?
| From: | Martin Towell | Date: | Tue, 04 Jun 2002 23:55:48 +0000 |
| Subject: | RE: [PHP] Creating pop-up window and passing variable to it? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-100630@lists.php.net to get a copy of this message | ||
<script>
function myopen()
{
window.open("foobar.html?var1=<?= $var1; ?>&var2=<?= $var2; ?>");
}
</script>
<a href="javascript:myopen();">click for new window</a>
-----Original Message-----
From: Igor Portnoy [mailto:igor@gibsonusa.com]
Sent: Wednesday, June 05, 2002 9:52 AM
To: php-general@lists.php.net
Subject: [PHP] Creating pop-up window and passing variable to it?
How can I create a pop up window in my index.php (for example) when user
clicks on the link and pass value of the variable from my index.php to
this new window?