From: [EMAIL PROTECTED]
Operating system: RedHat Linux 8.0
PHP version: 4.2.2
PHP Bug Type: Apache2 related
Bug description: Single select in form returns wrong variable
The following HTML file should produce the result "Field 1" when it calls
the PHP file. Instead the result is "Field 1select=Field 1".
test.html:
<html>
<body>
<form method = "post" action = "test.php">
<p><select name = "select">
<option selected = "selected">Field 1</option>
<option>Field 2</option>
</select>
</p>
<input type = "submit">
</form>
</body>
</html>
test.php:
<html>
<body>
<P>
<?php
print( $select )
?>
</P>
</body>
</html>
I used the RedHat php distribution, php-4.2.2-8.0.5 without any
recompilation or modification (other than to include the AddType
application/x-httpd-php .php line to the httpd configuration). The apache
distribution I am using is also native RedHat: httpd-2.0.40-11
--
Edit bug report at http://bugs.php.net/?id=21080&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21080&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21080&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21080&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21080&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21080&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21080&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21080&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21080&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21080&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21080&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21080&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21080&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21080&r=isapi