Re: $_POST suddenly empty; $_GET and _$REQUEST fine
- From: nrixham@xxxxxxxxx (Nathan Rixham)
- Date: Wed, 03 Dec 2008 23:20:35 +0000
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..
.
- Follow-Ups:
- Re: [PHP] Re: $_POST suddenly empty; $_GET and _$REQUEST fine
- From: Jim Lucas
- Re: [PHP] Re: $_POST suddenly empty; $_GET and _$REQUEST fine
- References:
- $_POST suddenly empty; $_GET and _$REQUEST fine
- From: Alex Kirk
- $_POST suddenly empty; $_GET and _$REQUEST fine
- Prev by Date: $_POST suddenly empty; $_GET and _$REQUEST fine
- Next by Date: RE: [PHP] $_POST suddenly empty; $_GET and _$REQUEST fine
- Previous by thread: $_POST suddenly empty; $_GET and _$REQUEST fine
- Next by thread: Re: [PHP] Re: $_POST suddenly empty; $_GET and _$REQUEST fine
- Index(es):