#48890 [NEW]: $_POST not working properly
| From: | kwoznik at poczta dot onet dot pl | Date: | Sat, 11 Jul 2009 22:18:44 +0000 |
| Subject: | #48890 [NEW]: $_POST not working properly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139631@lists.php.net to get a copy of this message | ||
From: kwoznik at poczta dot onet dot pl
Operating system: vista
PHP version: 5.3.0
PHP Bug Type: *Programming Data Structures
Bug description: $_POST not working properly
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 bug report at http://bugs.php.net/?id=48890&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48890&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48890&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48890&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48890&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48890&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48890&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48890&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48890&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48890&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48890&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48890&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48890&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48890&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48890&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48890&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48890&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48890&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48890&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48890&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48890&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48890&r=mysqlcfg