I am writing a Sencha Touch app. I have a FormPanel which sends a POST request to the server with Request Payload as follows.
{
"records": [
{
"Id": 0,
"Picture": "",
"PostedOn": "Wed Oct 05 2011 16:06:28 GMT+0600 (QYZT)",
"OccurringOn": "Wed Oct 05 2011 16:06:28 GMT+0600 (QYZT)",
"Title": "Test",
"Organiser": "Umair",
"Details": "This is test."
}
]
}
How am I supposed to get this data at the server side assuming this is posted to Events.php? I am currently tryong $_POST["Title"] but it is not working.
You have to read the raw post data (either opening the php://input stream or getting from $HTTP_RAW_POST_DATA if it’s enabled)