0
xmlhttp.open("GET","tablebase.php?q="+str,true);

I can get value to the $q variable in tablebase.php by above method.

But how i can get a value to $q2 by using the above method.

Thank you!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by dhairyaguptha
0

When you push through an AJAX request, all the variables can be sent through the querystring, you can send multiple variables using ampersand(&). In you case

xmlhttp.open("GET","tablebase.php?q="+str+"&q2="+str2,true);

where str2 would hold the data you need to send to q2.

Edited by sudeepjd: n/a

0

When you push through an AJAX request, all the variables can be sent through the querystring, you can send multiple variables using ampersand(&). In you case

xmlhttp.open("GET","tablebase.php?q="+str+"&q2="+str2,true);

where str2 would hold the data you need to send to q2.

Thank you very much

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.