AJAX pass 2 variables to .php file -


I have to pass the variable uid and siteAurl with AAAX. How can I do this?

You can do me wrong here:

  xmlhttp.open ("GET", "insert / insert-badge.php? User =" uid "& amp; Site = "+ siteAurl, true);   

thanks

  xmlhttp.open ("received Do "," insert / dot-badge.php? User = "+ uid +" and site = "+++ true, true);   

Variables should be encoded to uid and siteAurl encodeurIComponent () before they use It is done above the URL.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -