0
Well, I researched an answer and couldn’t find one, so I decided to ask here. I was making a Login system with JSON and PHP that should send a POST through JSON but the variable "_POST" always returns empty, prints:
This is the JSON it sends to the file "login.php".
And this is what it returns (Ps.: I used a "echo json_encode($_POST)" in the "login.php" file and it returns "[]", but when the value is changed it is also displayed in the "Reply" of Firebug which indicates that it is sending to the correct link. Someone understands this?
Can you post the code? It would help us to better understand your problem.
– Marconi
What language is sending JSON to PHP? Javascript? If yes, pure Javascript, jQuery or other framework? Post the part of your code that makes the POST (be it in any language) and the part of PHP that receives it. Without it we can never help you.
– Rafael