Re: php and javascript

From: Date: Fri, 27 Jul 2001 11:33:33 +0000
Subject: Re: php and javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59922@lists.php.net to get a copy of this message
Hello Karl, Friday, July 27, 2001, 1:08:05 PM, you wrote: KP> Does anyone know how to pass php variables to a javascript for processing. KP> I have a DHTML menu system that requires variables be attached to the url KP> contained within it. Using echo does not print the variable to the url. KP> Is there another way? KP> Thx in advance. <script language=javascript> varname='<? echo $varname; ?>'; some usage of varname; </script> I had a same problem some time ago. There must be a single quotes neither is it string nor any other type. I hope it helps -- Best regards, Daniel mailto:daniel@rezny.sk

« previous php.general (#59922) next »