javascript + send multiple strings with URL

Dominic6969

New Member
I have a script that calls another php page and passes values using PHP get.The one variable, q is sent with the URL where str is a variable.\[code\]xmlhttp.open("GET","getdata.php?q="+str,true); \[/code\]I have a few multiple variables that I want to send in the URL string.How can I send multiple variables. Along the lines of:\[code\]xmlhttp.open("GET","getdata.php?q="+str+"y="+str2+"z="+str3,true); \[/code\]where the URL will then be somthing like\[code\]page.php?q=Peter&y=John&z=Smith\[/code\]
 
Back
Top