Somebody suggested this code to see the POST but is working only partially:
if($_POST){
$str = '';
foreach($_POST as $P=>$p){
$str .= "$P => $p\r\n";
}
$str .= "====================\r\n";
$f = fopen('post.txt', 'a+');
fwrite($f, $str);
fclose($f);
print('POST request saved to disk as post.txt<br>');
}
else { print('No POST received!'); }