How to Receive JSON POST with PHP

How to Receive JSON POST with PHP

We all know that $_POST is used to collect post data in PHP. That’s true. But when we try to get JSON post data using $_POST then it fails. Recently I was working on project and need to receive JSON POST with PHP. I had expected that JSON POST data in $_POST superglobal variable but … Read more

Send Form Data as JSON via AJAX with JQuery

Send Form Data as JSON via AJAX with JQuery

In previous post we have seen how to send data in serialized form with ajax using searialize() method. Now we will see how to post json data with ajax using serializeArray(). Before proceed we must know what is the difference between serialize() and serializeArray(). serializeArray creates an array and serialize is used to mean a … Read more