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

php - Creating canonical URLs with custom route-classes -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -

Mysql Local server hardware -