Jon, thanx for the fast response, but the problem is that the link is
made dynamically from a DB and the varvalue changes on every link... if
it helps, I make this link list with a FOR loop in PHP and the varvalues
I want to pass are the IDs of a table elements.

Cesar L. Aracena
(0299) 156-356688
Neuquén (8300) Capital

-----Mensaje original-----
De: Jon Haworth [mailto:[EMAIL PROTECTED]] 
Enviado el: miércoles, 18 de diciembre de 2002 7:50
Para: 'Cesar Aracena'; Php-General@Lists. Php. Net
Asunto: RE: [PHP] Javascript var to PHP

Hi Cesar,

> I want one of my links to open a brand-new 
> pre defined window using a javascript 
> but I don't know how to pass a variable so 
> the opened PHP file knows which info to get 
> from MySQL... 

In your launchinfopage() function, presumably you're specifying the url
the page ("foo.php" or something)?

If so, just tack the variables on the end of the url as normal:


And then, in foo.php, look in the $_GET array:

  echo "varname is ". $_GET['varvalue'];

I do this quite a lot, I can go and dig up the code if you're still


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to