php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37439 POST Data is Empty, GET works fine!
Submitted: 2006-05-14 17:30 UTC Modified: 2006-05-14 18:30 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cjm at cjmweb dot fsnet dot co dot uk Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.4 OS: SuSE Linux 10.0
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cjm at cjmweb dot fsnet dot co dot uk
New email:
PHP Version: OS:

 

 [2006-05-14 17:30 UTC] cjm at cjmweb dot fsnet dot co dot uk
Description:
------------
Whenever I submit a PHP Form, GET is populated and POST is not, even if a PHPINFO on the form reports that it is a POST request.  The problem is reproducible every time on my system.

Reproduce code:
---------------
Take any form with method='POST' and it will fail!

Expected result:
----------------
The $_POST variable is populated along with $_GET.

Actual result:
--------------
$_POST is empty.  $_GET has the query string variables.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-14 17:36 UTC] tony2001@php.net
Please check variables_order value in your php.ini.
 [2006-05-14 18:18 UTC] cjm at cjmweb dot fsnet dot co dot uk
My current config is now

variables_order=GPC

I did have it as the default: EGPCS and then changed it to see if there would be any difference.  I get a Content-Length=0 into PHP (as reported by PHPInfo), if that's any help!
 [2006-05-14 18:18 UTC] cjm at cjmweb dot fsnet dot co dot uk
Oops, I closed the bug!
 [2006-05-14 18:25 UTC] tony2001@php.net
>I get a Content-Length=0 into PHP (as reported
by PHPInfo), if that's any help!
Well, then it's clearly not PHP problem: no data -> no variables.
 [2006-05-14 18:27 UTC] cjm at cjmweb dot fsnet dot co dot uk
Discovered the issue, trying to feed LOADS of data through Apache doesn't go down well.  It was like 500 variables!

A simple POST worked fine!
 [2006-05-14 18:30 UTC] tony2001@php.net
Not PHP problem -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 06:01:27 2024 UTC