How to get Ajax get request on the server and process it in php? For example, there is a piece of code:

 request.open("GET","kakoy_to.php?infa = " + escape(infa),true); 

How to process this info on the server? The if(isset($_GET['infa'])) returns false . Help me please. I would be very grateful.

  • In php itself, you need to build a solid overgrown! Without entering the apartment - you will not get to the toilet! ? infa apartment what after = toilet))) - Palmervan

1 answer 1

 "kakoy_to.php?infa=" + escape(infa) 

That's it) Space in the address bar is a part of either a variable or its name. Those. you got

 $_GET['infa '] = ' данные'; // $_GET['infa'] = null