ID:               28788
 User updated by:  lsjoberg at aland dot net
 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:

The original code was fully W3C compliant, the testcase below was
stripped down before submitted.

Browsers used was Mozilla and Opera under FreeBSD and Internet Explorer
in some Windows flavour.

It feels like a browser bug but since it occured when upgrading from
PHP4 to PHP5 without code changes it seems suspicious.

I will do some more testing during next week to see if I can isolate
the problem further.


Previous Comments:
------------------------------------------------------------------------

[2004-06-18 20:33:52] imprestavel at gameguru dot com dot br

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?

------------------------------------------------------------------------

[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

Reply via email to