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!
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!
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
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.