From:             karateev at yandex dot ru
Operating system: Linux oh3.one-hosting.com 2.4.20
PHP version:      4.3.3
PHP Bug Type:     CGI related
Bug description:  mixed name and value of variables in POST

Description:
------------
In this simple code we have received after submit for example character
"oth" in text box this value of var id_to_edit "othid_to_edit=oth". Very
strange, because some time we have received the correct value - for one
character and several times for two. Please try
http://www.aviapress.com/test1.php and http://www.aviapress.com/test.php
for information about system.

We have used this scripts on another hosting, but today...
Thank you in advance.
Vsevolod.

Reproduce code:
---------------
<?php
echo $id_to_edit;
echo "<form method=\"post\" action=\"$PHP_SELF\">\n";
echo "<input type=\"Submit\" value=\"Submit ID to edit\"
name=\"submit\"><BR><BR>\n";
echo "<table border=1>\n";
echo "<tr><td align=center>enter ID's to edit</td></tr>\n";
echo "<tr><td><input type=\"Text\" value = \"$id_to_edit\"
name=\"id_to_edit\" size=\"40\"></td></tr>\n";
echo "</table>\n";
echo "</form>";
?>

Expected result:
----------------
oth

Actual result:
--------------
othid_to_edit=oth

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

Reply via email to