From:             [EMAIL PROTECTED]
Operating system: Linux Red hat 8.0
PHP version:      4.2.2
PHP Bug Type:     Apache2 related
Bug description:  Apache2 on redhat 8 breaks form variables in php

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>
                        [EMAIL PROTECTED]
                </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.

-- 
Edit bug report at http://bugs.php.net/?id=20606&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20606&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20606&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20606&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20606&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20606&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20606&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20606&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20606&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20606&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20606&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20606&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20606&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20606&r=isapi

Reply via email to