retreiving posted json data
retreiving posted json data
paperboard
Posts: 4Questions: 0Answers: 0
Hello,
I have posted a JSON serialized string to my server and i want to go a page to retrieve that data. How do i retrieve the JSON data that i posted to the server?
This is essentially an addition for the Submit form elements example, where after the button is pushed you are brought to a new page that displays the items you chose in the previous page.
I can see the JSON data in firebug, I just don't know how to get at it using java or php.
Any help would be greatly appreciated. Here is what firebug displays:
Content-Type: application/x-www-form-urlencoded
Content-Length: 65
example_length=10&check_25105843=25105843&check_27036425=27036425
I have posted a JSON serialized string to my server and i want to go a page to retrieve that data. How do i retrieve the JSON data that i posted to the server?
This is essentially an addition for the Submit form elements example, where after the button is pushed you are brought to a new page that displays the items you chose in the previous page.
I can see the JSON data in firebug, I just don't know how to get at it using java or php.
Any help would be greatly appreciated. Here is what firebug displays:
Content-Type: application/x-www-form-urlencoded
Content-Length: 65
example_length=10&check_25105843=25105843&check_27036425=27036425
This discussion has been closed.
Replies
echo file_get_contents(‘php://input’);
If you have a more eloquent suggestion, please let me know.