PHP - How to read post data with no key?

OthetaStent

New Member
This piece of jQuery code posts to one of our php pages.\[code\]var json = '{"object1":{"object2":[{"string1":val1,"string2":val2}]}}';$.post("phppage", json, function(data) { alert(data);});\[/code\]Inside phppage, I have to do some processing depending on the post data. But I am not able to read the post data. \[code\]foreach ($_POST as $k => $v) { echo ' Key= ' . $k . ' Value= 'http://stackoverflow.com/questions/3899033/. $v;}\[/code\]
 
Back
Top