|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-24 02:36 UTC] vikaskedia at hotmail dot com
[2002-11-24 02:37 UTC] rasmus@php.net
[2002-11-24 02:53 UTC] vikaskedia at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Jan 02 16:00:01 2026 UTC |
The script which works fine on Apache 1.3 is: <? if($FormMapField['Submit']) { print_r ($_POST); } ?> <TABLE BORDER=1> <form method=post action=""> <TR> <TD> vikas </TD> <TD> <select name=ProfMapField[]> <option>FldFirstName</option> </select> </TD> </TR> <TR> <TD> hello@hotmail.com </TD> <TD> <select name=ProfMapField[]> <option>FldFirstName</option> </select> </TD> </TR> <input type=submit name=FormMapField[Submit] value=MappedFields> </form> </table> But on Apache2 this script gives the erroroneous output of: Array ( [ProfMapField] => Array ( [0] => FldFirstName [1] => FldFirstName [2] => FldFirstName ) [FormMapField] => Array ( [Submit] => MappedFields ) ) The output ProfMapField has 3 indices, Though it is supposed to have only 2 indices.