Using JavaScript variables in PHP
| From: | Mike Knittel | Date: | Thu, 20 Nov 2003 15:45:51 +0000 |
| Subject: | Using JavaScript variables in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170426@lists.php.net to get a copy of this message | ||
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.