>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 include the javascript variable in a subsequent GET or POST request to the server - once your browser renders an HTTP response, PHP's involvement is long finished. --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php