From:             joe at mcknight dot de
Operating system: Linux
PHP version:      4.3.1
PHP Bug Type:     Variables related
Bug description:  posted form variables mixed

With these pages:

test.php:
--------------------
<html>
<body>
<form method="post" action="out.php">
<p>
  <input type="text" name="suchstr" size="20">
  <input type="submit" value="OK" name="B1">
</p>
</form>
</table>

</body>
</html>


out.php:
-----------
<?
echo "Variable \"suchstr\": $suchstr";
echo "<br>";
echo "Variable \"B1\": $B1";
?>

I get (clicking on the button):

Variable "suchstr": abc&B1=OK
Variable "B1": OK

That means that "suchstr" got mixed with the name and value of Variable
B1!

Feel free to ask for more information or tell me what I'm doing wrong 
:-)

-- 
Edit bug report at http://bugs.php.net/?id=22773&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22773&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22773&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22773&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22773&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22773&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22773&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22773&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22773&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22773&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22773&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22773&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22773&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22773&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22773&r=gnused

Reply via email to