Re: popup windows & variables

From: Date: Fri, 30 Apr 2004 08:30:19 +0000
Subject: Re: popup windows & variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-185020@lists.php.net to get a copy of this message
"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; ?>&amp;var2=<?= $value2; ?>', 'other popup params here')"; So the target URI might look like: target.php?var1=value1&var2=value2 Regards, Torsten > > -Bill

« previous php.general (#185020) next »