Re: [PHP] Using JavaScript variables in PHP

2003-11-21 Thread Larry_Li
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 [EMAIL PROTECTED] 11/20/2003 11:45 PM To: [EMAIL PROTECTED] cc: Subject:[PHP] Using JavaScript variables

[PHP] Using JavaScript variables in PHP

2003-11-20 Thread Mike Knittel
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,

Re: [PHP] Using JavaScript variables in PHP

2003-11-20 Thread Mike Migurski
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,

Re: [PHP] Using JavaScript variables in PHP

2003-11-20 Thread John Nichel
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