php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20606 Apache2 on redhat 8 breaks form variables in php
Submitted: 2002-11-24 02:34 UTC Modified: 2002-11-24 02:53 UTC
From: vikaskedia at hotmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.2 OS: Linux Red hat 8.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vikaskedia at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-11-24 02:34 UTC] vikaskedia at hotmail dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-24 02:36 UTC] vikaskedia at hotmail dot com
This same script runs fine on another red hat 8 box that i have. Both the two red hat boxes were installed from the same CD. The httpd.cong and php.ini file on both the boxes is also same.

I am invoking this script from a machine running win2K professional with IE 5.0
 [2002-11-24 02:37 UTC] rasmus@php.net
Install Apache 1.3.x.  Apache 2.0 is not a production-quality web server at this point.
 [2002-11-24 02:53 UTC] vikaskedia at hotmail dot com
Any input as to when Apache2 will be ready for production use with php. 

Apparently www.apache.org suggests that Apache 2.0.43 is ready for production use.

Thanks

Vikas
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 13:01:32 2024 UTC