php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48890 $_POST not working properly
Submitted: 2009-07-11 22:18 UTC Modified: 2009-07-20 01:00 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:1 (33.3%)
From: kwoznik at poczta dot onet dot pl Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.3.0 OS: vista
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: kwoznik at poczta dot onet dot pl
New email:
PHP Version: OS:

 

 [2009-07-11 22:18 UTC] kwoznik at poczta dot onet dot pl
Description:
------------
when in at least two fields of the HTML form are entered identical data and the register_globals is set to off, sending the data using method POST gives the $_POST array empty.

There is no problem when the data are different.

Reproduce code:
---------------
<form action='login.php' method='post'>
<input type=text name=login size=15 maxsize=10>
<input type=password name=password size=15 maxsize=10>
<input type=submit value=Login>
</form>

Expected result:
----------------
1. first example
as login entered "test"
as password eneterd "test" 

expected
$_POST['login']=test
$_POST['password']=test

2. second example
as login entered "abcd"
as password eneterd "efgh" 

expected
$_POST['login']=abcd
$_POST['password']=efgh

Actual result:
--------------
1. first example result - incorrect
$_POST is empty.

1. second example result - data are correct
$_POST['login']=abcd
$_POST['password']=efgh

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-12 09:27 UTC] sjoerd-php at linuxonly dot nl
Thank you for your report.

I could not reproduce the bug you describe. How do you test whether $_POST is empty? Could you please provide a complete code example?
 [2009-07-12 12:31 UTC] jani@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2009-07-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 17:01:28 2024 UTC