ID: 30006 Updated by: [EMAIL PROTECTED] Reported By: knst at mail dot ru -Status: Open +Status: Bogus Bug Type: Scripting Engine problem PHP Version: 4.3.7 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2004-09-07 09:52:59] knst at mail dot ru Description: ------------ I've got a problem while trying to process results of submitting such kind of a form : <form method=post > <input name=vname value="1"><BR> <input name=vname value="2"><BR> <input name=vname value="3"><BR> <input name=vname value="4"><BR> <input type=submit><BR> </form> PHP generates only one variable $vname with value 4 instead of array $vaname[] with 4 elements. It was impossible to change html of the form. So I had to parse data read from 'php://input'. Reproduce code: --------------- Submittion of <form method=post > <input name=vname value="1"><BR> <input name=vname value="2"><BR> <input name=vname value="3"><BR> <input name=vname value="4"><BR> <input type=submit><BR> </form> Expected result: ---------------- value of $vname is array( 0 => 1, 0 => 2, 0 => 3, 0 => 4) Actual result: -------------- value of $vname is 4 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30006&edit=1