Re: Using JavaScript variables in PHP
| From: | John Nichel | Date: | Thu, 20 Nov 2003 16:39:35 +0000 |
| Subject: | Re: Using JavaScript variables in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170431@lists.php.net to get a copy of this message | ||
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