ID: 48890 Updated by: j...@php.net Reported By: kwoznik at poczta dot onet dot pl -Status: Open +Status: Feedback -Bug Type: *Programming Data Structures +Bug Type: *General Issues Operating System: vista PHP Version: 5.3.0 New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2009-07-12 09:27:39] 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-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