How can I handle my json object resulted from an Ajax call in PHP file instead of js file (I am using jquery)?
Let's say I have a phonebook table with name, phonenum columns. My index file have an input text field and when someone types something and clicks submit button, an Ajax call will be sent to server. The server will return an json object contains all matching phone numbers. So, how can I convert (or decode) this object into PHP variable and pass it to PHP script (in order to display phone numbers in a table, for example).
EDIT
I dont mean 'get json from server, then send it back to the server'. In fact, I mean "convert the json object to 'something' like a PHP variable, and I can draw a table of phone numbers on client browser". Maybe I need something like 'jquery template'. I want to receive data in Json format instead draw a table on the server, then send back as HTML because I want to reduce server processes. Can you give me any advice for my problem? something like 'jquery template' which can understand json object as same as PHP understand PHP object $obj?