How to get the POST values from serializeArray in PHP?
I am trying this new method I've seen serializeArray() . //with ajax var data = $("#form :input").serializeArray(); post_var = {'action': 'process', 'data': data }; $.ajax({.....etc So I get these key value pairs, but how do I access them with PHP? I thought I needed to do this, but it won't work: // in PHP script $data = json_decode($_POST['data'], true); var_dump($data);// will return NULL? Thanks, Richard Like Gumbo suggested, you are likely not processing the return value of json_decode . Try $data = json_decode($_POST['data'], true); var_dump($data); If $data does not contain the expected