Re: Grabing JAVASCRIPT with PHP

From: Date: Tue, 04 Jul 2000 13:11:49 +0000
Subject: Re: Grabing JAVASCRIPT with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4789@lists.php.net to get a copy of this message
At 12:24 PM 7/4/00 -0300, Georges da Mata Claessen wrote: >I want to know if anyone of you know how to make PHP grab a value from >javascript and place it in a PHP variable. For example grabe a textfield >value and place it in a PHP variable to do a query on a database. The PHP is processed first, sent to the web browser as a HTML file format, then the browser executes the JavaScript. So once the PHp page is presented, you cannot work with a javaScript value. Now, if you program your JavaScript to go to a new PHP page after an OnClick or some other event, then you CAN pass that variable to the new script. Good luck, Jeff

« previous php.general (#4789) next »