"William Stokes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to