mctjl_1997
mctjl_1997

Reputation: 163

Javascript AJAX call, 'GET' multiple values in URL

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

Is it possible to do this?

xmlhttp.open("GET","BAConsultRecordsAJAX.php?q="+str+"j="+str2,true);

I want a value to be stored in both q and j.

Upvotes: 0

Views: 87

Answers (1)

Ted
Ted

Reputation: 4067

of course it is

just add an & before each additional parameter like this:

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

Upvotes: 4

Related Questions