Re: Re: $_POST suddenly empty; $_GET and _$REQUEST fine
| From: | Jim Lucas | Date: | Thu, 04 Dec 2008 00:15:33 +0000 |
| Subject: | Re: Re: $_POST suddenly empty; $_GET and _$REQUEST fine | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284070@lists.php.net to get a copy of this message | ||
Nathan Rixham wrote:
> Alex Kirk wrote:
>> I've got an Apache 2.2.3 server running PHP 5.2.6 on top of FreeBSD
>> 6.2. It's worked quite well for over a year now. However, as of some
>> time last night, phpBB broke; upon investigation, I realized that the
>> problem was that $_POST was never getting populated, even on properly
>> formed HTML forms.
>>
>> Testing this to try to find the issue, I used the following script:
>>
>> <?php
>> print "Testvar: " . $_POST['testvar'] . "<br/>\n";
>> ?>
>>
>> <form method="POST"
>> action=http://www.newmars.com/test.php
>> name=formname enctype="multipart/form-data">
>> <input type=text name=testvar><br/>
>> <input type=submit value=Submit><br/>
>> </form>
>>
>
> looks like you already fixed it.. works fine for me on your server:
>
> array(1) { ["testvar"]=> string(2) "er" } NULL
> (then all the phpinfo())
>
> i posted "er" on the form at bottom..
>
Seems to be working for me also.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare