I have 2 PHP Variables: $category1
and $category2
I want the URL to be like this:
?category1=$category1&category2=$category2&q=str
I only know PHP, I have very less knowledge of JS/Jquery, can someone help me in this small thing?
I tried this:
var category1 = '<?php echo $category1; ?>';
var category2 = '<?php echo $category2; ?>';
But, idk what to write here
xmlhttp.open("GET","getuser.php?q="+str,true);