Re: Php and JavaScript

From: Date: Sun, 02 Mar 2003 16:16:59 +0000
Subject: Re: Php and JavaScript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137781@lists.php.net to get a copy of this message
Valentin wrote:
Hi, Is any way to write JavaScript code into PHP function or to send PHP's variables values to the JScript variables? Thanks,
Of course, you can create dynamicaly javascript via php, ie: echo " <script language=\"JavaScript\"> var yourvar = $onephpvar ; </script>" ; Is that what you were asking for ? Vincent.

« previous php.general (#137781) next »