Re: php & javascript

From: Date: Tue, 13 Jun 2000 09:32:21 +0000
Subject: Re: php & javascript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1703@lists.php.net to get a copy of this message
Hi, be careful and always keep in mind that: * PHP is a server-side scripting language and the client sees nothing of it. * Javascript is most commonly used as a client-side scripting language and the server does not execute it (although he 'sees' it, if you choose to). This said, you can do something like <SCRIPT language="Javascript"> ... some_javascript_var = "<?= $some_php_var ?>"; ... </SCRIPT> But these will never interact, i.e. when the client sees the Javascript code and executes it, the PHP process on the server is done. You can't pass values back and forth between the two. Ben On Tue, 13 Jun 2000, sarahana wrote: > Hi, I was wondering: > > How would you assign the value of a javascript variable to a php > variable? > > gracias. > > > -- Benjamin Peter Zentropy Partners GmbH ph. +49-69-96244-395 pax +49-69-96244-244 http://www.zentropypartners.com "Integrate the building and marketing of digital businesses"

« previous php.general (#1703) next »