Re: Can't read $_POST array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This was the complete code of the page (this is the POST version not the REQUEST version):

<?php
$response = print_r($_POST, true);
echo $response;
?>

Returns an empty array no matter what POST vars are sent. We fixed it by changing it to this, which I've never even heard of, but so far is working perfectly:

<?php
$response = file_get_contents('php://input');
echo $response;
?>

I have no idea what the problem was. Thanks to everyone for your help.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux