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!

Recommended Answers

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.

Jump to Post

All 2 Replies

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.