Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
xmlhttp.open("GET","db.php?abc="+x"&xyz="+y,true);
Posted
Comments
Amir Mahfoozi 31-Oct-11 4:22am    
why there is nothing between x and "&xyx=" ?
I think correct one is : xmlhttp.open("GET","db.php?abc="+x+"&xyz="+y,true);

1 solution

I assume, x and y are your variables. In this case your syntax is incorrect.

Try by changing to as below.
HTML
xmlhttp.open("GET","db.php?abc="+ x + "&xyz=" +y,true);

Only added "+" after x. Hope this should work for you.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900