Hi,
I have come up against a strange problem regarding the $_POST array.
I have got a standard HTML form submitting back to the same page.
When I do a "var_dump($_POST)" on the returned form data all I get is "array(0) { }", however when I do a "var_dump($GLOBALS)" the POST data is there in the GLOBALS array. Also if I do a "var_dump($GLOBALS)" followed by a "var_dump($_POST)" the POST array is there!!!
All my other scripts that use posted form data are also showing the same problem, they were working ok until recently.
I have googled for a solution to this problem but all I find is coding problems or ini settings which I have tried. I am sure this is not a code problem, has anyone else come up against this
My testing server is using PHP 5.2.6 and Apache 2.2.9 on a Fedora 9 system.
Kind Regards
Garry
$_POST array not working
Moderator: General Moderators
Re: $_POST array not working
OK solved it now!!!
It was a coding issue in my session handling script, still can't see why it knocked out the $_POST though!!
Garry
It was a coding issue in my session handling script, still can't see why it knocked out the $_POST though!!
Garry