[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?
RE: [PHP] Creating pop-up window and passing variable to it?
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:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:52 AM To: [EMAIL PROTECTED] 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: RE: [PHP] Creating pop-up window and passing variable toit?
Couldn't you also do: a href=foobar.php?var1=1var2=2 target=_blankLink/a I think you can subsitute Resource Window for _blank and get the same effect. HTH Jason Soza - Original Message - From: Martin Towell [EMAIL PROTECTED] Date: Tuesday, June 4, 2002 3:55 pm Subject: RE: [PHP] Creating pop-up window and passing variable to it? script function myopen() { window.open(foobar.html?var1=?= $var1; ?var2=?= $var2; ?); } /script click for new window -Original Message- From: Igor Portnoy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:52 AM To: [EMAIL PROTECTED] 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: RE: [PHP] Creating pop-up window and passing variable to it?
Depends if you want to have more control over the window that gets open If you don't mind what the window looks like, use the method Jason mentioned. If you want to set the size or turn on/off the status bar/tool bar/etc (to name a few) then use the javascript version -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 10:19 AM To: [EMAIL PROTECTED] Cc: 'Igor Portnoy' Subject: Re: RE: [PHP] Creating pop-up window and passing variable to it? Couldn't you also do: a href=foobar.php?var1=1var2=2 target=_blankLink/a I think you can subsitute Resource Window for _blank and get the same effect. HTH Jason Soza - Original Message - From: Martin Towell [EMAIL PROTECTED] Date: Tuesday, June 4, 2002 3:55 pm Subject: RE: [PHP] Creating pop-up window and passing variable to it? script function myopen() { window.open(foobar.html?var1=?= $var1; ?var2=?= $var2; ?); } /script click for new window -Original Message- From: Igor Portnoy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:52 AM To: [EMAIL PROTECTED] 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Creating pop-up window and passing variable to it?
This is how I do it. I fire a javascript when the link is clicked, which in turn submits a form targetting the page you openned (named of course). function donewpage(){ open window named mywindow submit form targetting mywindow blah blah blah } sorry to be so brief but the hockey game is on. w0ot! Igor Portnoy wrote: 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php