How can I print a $_POST?
$_POST
Example:
echo $_POST[\'data\'];
This returns nothing...
Your code is correct.
You can use either:
var_dump($_POST);
or
print_r($_POST);
to print out the entire POST array for debugging.