passing PHP variables to Javascript ...

From: Date: Mon, 17 Nov 2003 19:19:40 +0000
Subject: passing PHP variables to Javascript ...
Groups: php.general 
Request: Send a blank email to php-general+get-169996@lists.php.net to get a copy of this message
Greetings. I need to be able to pass a PHP variable to a Javascript and can't figure out how to do it. In short, the Javascript win() statement is used open a page as defined in PHP -- i.e., $php_name = "http://www.somewhere.com/something/3.jpg" , a filename that was generated dynamically in PHP ... how do I pass that variable to my Javascript routine? (Pardon me if this is more of a Javascript issue than a PHP issue -- I couldn't decide where to ask for help first :-) Thank in advance.

« previous php.general (#169996) next »