ID: 28788 Comment by: imprestavel at gameguru dot com dot br Reported By: lsjoberg at aland dot net Status: Open Bug Type: Apache2 related Operating System: Redhat Enterprise Linux PHP Version: 5.0.0RC3 New Comment:
It looks more like a browser issue. Have you tryed writing conformant html? I tested with Mozilla/rv1.6 and IE/6.0 on Apache/2.0.49, PHP/5.0.0RC3 (register_globals=On and Off), under Windows2000 and didn't have that problem (with the same no-" html). What browser are you using? Previous Comments: ------------------------------------------------------------------------ [2004-06-15 11:31:36] lsjoberg at aland dot net Description: ------------ When a HTML form contains a single input field (this could be plain INPUT, HIDDEN, SELECT or just about any time) with an associated value the value is not passed correctly to the receiving PHP script. This only happends when the form contains exactly one field and when PHP is run as an Apache2 module. (Could not reproduce with PHP running as CGI under caudium). Reproduce code: --------------- test.htm: <html><body> <form method="POST" action="test.php"> <input name=id value=5> <input type=submit> </form></body></html> test.php: <? echo $id; ?> Expected result: ---------------- The expected result is that the php script should print a 5 and nothing else. (We are using register_globals=On). Actual result: -------------- The output of the php-script is '5id=5' instead of '5'. If a <input type=hidden name=foo> is added to the html form the correct output of 5 is displayed. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28788&edit=1