Re: popup windows & variables
| From: | William Stokes | Date: | Tue, 04 May 2004 08:50:37 +0000 |
| Subject: | Re: popup windows & variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185280@lists.php.net to get a copy of this message | ||
Thanks Torsten
I'm kinda new to this whole php/javascript thing so could you show how to
embed this link into the php script. I'm having a bit hard time with this.
Thanks
-Bill
"Torsten Roehr" <roehr@zilleon.com> kirjoitti viestissä
news:20040430082743.37763.qmail@pb1.pair.com...
> "William Stokes" <kalles@operamail.com> wrote in message
> news:20040430075734.50273.qmail@pb1.pair.com...
> > Hello
> >
> > I need to open a popup window from my php page . The information
displayed
> > on this popup depends on a variable value on the first page. How do I
> > paste/move the variable value to the popup window. The popup is opened
via
> > javascript.
> >
> > I have no idea how to do this. Hope someone can help. Thaks
>
> Hi Bill,
>
> it's quite easy. Just transfer your variables to the popup window via GET
by
> appending the values to the URI of the popup target:
>
> onClick="openPopup('target.php?var1=<?= $value1; ?>&var2=<?=
> $value2;
> ?>', 'other popup params here')";
>
> So the target URI might look like:
> target.php?var1=value1&var2=value2
>
> Regards, Torsten
>
> >
> > -Bill