Mike Knittel wrote:
How does one go about using a JavaScript variable with PHP code.  I have a
function in JavaScript that takes a single input parameter (ID).  I want to
use this ID variable as the value on the where clause of a database query.

Example: "select * from somedatabase where field=ID"

Can this be done, and if so how? I have been unable to figure this out.


Not unless you send a request to the server (reload the page, go to another page, etc.). php runs server side, JavaScript runs client side.


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to