#26228 [Opn->Bgs]: mixed name and value of variables in POST

From: Date: Thu, 13 Nov 2003 02:01:09 +0000
Subject: #26228 [Opn->Bgs]: mixed name and value of variables in POST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50307@lists.php.net to get a copy of this message
 ID:               26228
 Updated by:       iliaa@php.net
 Reported By:      karateev at yandex dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: Linux oh3.one-hosting.com 2.4.20
 PHP Version:      4.3.3
 New Comment:

It works fine.


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

[2003-11-12 17:55:00] karateev at yandex dot ru

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 this bug report at http://bugs.php.net/?id=26228&edit=1


Thread (3 messages)

« previous php.bugs (#50307) next »