RE: [PHP] assigning javascript variables to php variables...

From: Date: Mon, 12 May 2003 05:46:20 +0000
Subject: RE: [PHP] assigning javascript variables to php variables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147263@lists.php.net to get a copy of this message
On 11 May 2003, Ray Hunter wrote: > Leif answered the question correctly. The only way that your js is > going to talk to the server is via get and post with forms. Basically, > you can create a javascript var that is then sent to PHP and PHP will > pick it up with the $_POST or $_GET global arrays. > > I have done this many times by creating javascript vars and posting them > to a specific php page... The PHP manual faq has an example that does this, it's for screen width and height: http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable Regards, Philip

« previous php.general (#147263) next »