Search found 2 matches

by Totenkopf
Mon May 01, 2006 12:32 pm
Forum: PHP - Code
Topic: Assigning javascript variable to php variable
Replies: 2
Views: 347

How do I populate the options in my select statement with the reponse text from the server? The server is only returning echos of <option>opt1</option><option>opt1</option> etc... <script TYPE="text/javascript"> . . . function updateSub() { if (xmlHttp.readyState == 4) { var response = xml...
by Totenkopf
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){ "; //...