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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Dec 21 12:01:31 2024 UTC