php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27221 $_POST superglobal variable not populated after posting a form
Submitted: 2004-02-11 13:54 UTC Modified: 2004-02-20 16:54 UTC
From: patrick at studioemma dot be Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.4 OS: Redhat 7.3
Private report: No CVE-ID: None
 [2004-02-11 13:54 UTC] patrick at studioemma dot be
Description:
------------
After posting (method POST) a form (of any kind) the $_POST variable does not get populated. This error is hard to reproduce as it occurs sporadicily but sometimes more than once on the same form. Apparently with under the same conditions it sometimes works and sometimes not.

I experience the problem (I believe) only using SSL. I'm using rewrite rules, but the same as on other sites without SSL.

I read stuff about mentioning the action property in the form tag, about GPC order, etc... but nothing I've tried can reduce the error to it's origin. I do not know however how to check apache for incoming POSTed data.

Apache:
Server      Version:      Apache/1.3.27     (Unix)     (Red-Hat/Linux)
   FrontPage/5.0.2.2623     mod_ssl/2.8.12    OpenSSL/0.9.6b    PHP/4.3.4
   mod_perl/1.26 mod_python/2.7.6 Python/1.5.2 mod_webapp/1.2.0-dev
   Server Built: Dec 21 2003 12:00:54

Can you recommend me some actions ? I have not found any relevant info on the web.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-11 14:01 UTC] moriyoshi@php.net
See bug #18648 and check your httpd.conf ...
 [2004-02-11 14:04 UTC] moriyoshi@php.net
Obviously you are not using Apache2, so

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz

For Windows:

  http://snaps.php.net/win32/php4-win32-STABLE-
latest.zip

 [2004-02-11 14:51 UTC] patrick at studioemma dot be
my httpd.conf only mentions:

AddType application/x-httpd-php .php4 .php3 .phtml .php
AddType application/x-httpd-php-source .phps

However I have found a key to the origin: apparently the values I enter in the form influence the problem. I have been able to reproduce but cannot figure out any logic. I have to mention I'm only using a-zA-Z and - signs..
it's like black magic...

I have not yet installed the snapshot, will definitely await final release. I have to mention as well that I just upgraded to 4.3.4 from 4.3.2 where the problem occured as well.
 [2004-02-11 15:02 UTC] sniper@php.net
Just try the snapshot first.

 [2004-02-12 05:10 UTC] patrick at studioemma dot be
I will wait for the definite release. I can however allready add these comments:

- only occurs on SSL
- occurs when some fields (no reserved words as names) have spaces, numeric values, and perhaps others.

In the meantime I moved to just HTTP instead of HTTPS
 [2004-02-12 10:02 UTC] sniper@php.net
Can not reproduce using latest CVS (or even with 4.3.4)

 [2004-02-18 18:21 UTC] steve dot carrico at louisville dot edu
I don't beleive this is a PHP bug.  We started receiving similar problem reports at the university I work for after the latest Internet Explorer security update was released.  I came across the following Microsoft Knowledge Base article yesterday and the software update linked under the "Resolution" section appears to fix the problem:

http://support.microsoft.com/default.aspx?scid=kb;en-us;831167
 [2004-02-18 22:13 UTC] aintlikenospam at www dot ravis dot org/contact/
I wasted 2 full days tracking down something that looks very similar to this. In my case it's limited to IE and SSL only. Very intermitant. What solved it for us was this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;831167

and adding 
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
to our apache config in the ssl enabled virtualhost section. Give it a shot and see if it works for you too.
 [2004-02-19 02:51 UTC] patrick at studioemma dot be
Thanks, I should have thought as much :)

Closing the issue
 [2004-02-20 16:54 UTC] magnus@php.net
Since it wasn't a bug in PHP, it should be set to bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 11:01:30 2024 UTC