Re: Using JavaScript variables in PHP

From: Date: Fri, 21 Nov 2003 08:17:50 +0000
Subject: Re: Using JavaScript variables in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170530@lists.php.net to get a copy of this message
<form method="post" action="your_php_file.php"> <input name=id> </form> in your_php_file.php, try "select * from somedatabase where field=$id" "Mike Knittel" <mike@cmsgis.com> 11/20/2003 11:45 PM To: php-general@lists.php.net cc: Subject: [PHP] Using JavaScript variables in PHP 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#170530) next »