$_POST array not working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
kryten
Forum Newbie
Posts: 3
Joined: Tue Oct 14, 2008 7:57 am
Location: Essex, UK

$_POST array not working

Post by kryten »

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
User avatar
kryten
Forum Newbie
Posts: 3
Joined: Tue Oct 14, 2008 7:57 am
Location: Essex, UK

Re: $_POST array not working

Post by kryten »

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
Post Reply