Search found 2 matches
- Mon May 01, 2006 12:32 pm
- Forum: PHP - Code
- Topic: Assigning javascript variable to php variable
- Replies: 2
- Views: 347
- Mon May 01, 2006 10:37 am
- Forum: PHP - Code
- Topic: Assigning javascript variable to php variable
- Replies: 2
- Views: 347
Assigning javascript variable to php variable
I have a js function 'func' that when called, I like the input variable 'choice' to be assigned to a php variable' $choice' (to be used later in a sql query), but I am not sure how to go about doing this. Code: echo " <script TYPE=\"text/javascript\"> function func(choice){ "; //...