#20606 [Bgs]: Apache2 on redhat 8 breaks form variables in php
| From: | vikaskedia at hotmail dot com | Date: | Sun, 24 Nov 2002 08:53:23 +0000 |
| Subject: | #20606 [Bgs]: Apache2 on redhat 8 breaks form variables in php | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25694@lists.php.net to get a copy of this message | ||
ID: 20606
User updated by: vikaskedia@hotmail.com
Reported By: vikaskedia@hotmail.com
Status: Bogus
Bug Type: Apache2 related
Operating System: Linux Red hat 8.0
PHP Version: 4.2.2
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2002-11-24 02:37:23] 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:36:45] vikaskedia@hotmail.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:34:06] vikaskedia@hotmail.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20606&edit=1