php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26228 mixed name and value of variables in POST
Submitted: 2003-11-12 17:55 UTC Modified: 2003-11-13 02:25 UTC
From: karateev at yandex dot ru Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.3 OS: Linux oh3.one-hosting.com 2.4.20
Private report: No CVE-ID: None
 [2003-11-12 17:55 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-12 21:01 UTC] iliaa@php.net
It works fine.
 [2003-11-13 02:25 UTC] karateev at yandex dot ru
Very interesting - 
In Opera 7.21 it works fine, but in  IE 6.0.2800 I receive this error. So is it IE bug? May be some advice? But with old version of PHP on another server it works fine also with my IE 6.0.2800. 
Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC