#48890 [Com]: $_POST not working properly
| From: | sjoerd-php at linuxonly dot nl | Date: | Sun, 12 Jul 2009 09:27:40 +0000 |
| Subject: | #48890 [Com]: $_POST not working properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139639@lists.php.net to get a copy of this message | ||
ID: 48890
Comment by: sjoerd-php at linuxonly dot nl
Reported By: kwoznik at poczta dot onet dot pl
Status: Open
Bug Type: *Programming Data Structures
Operating System: vista
PHP Version: 5.3.0
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[2009-07-11 22:18:44] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48890&edit=1