#24145 [NEW]: Problem using POST request
| From: | przemek at hexacom dot biz | Date: | Thu, 12 Jun 2003 10:30:55 +0000 |
| Subject: | #24145 [NEW]: Problem using POST request | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-41760@lists.php.net to get a copy of this message | ||
From: przemek at hexacom dot biz
Operating system: Linux Mandrake 9.0
PHP version: 4.3.1
PHP Bug Type: HTTP related
Bug description: Problem using POST request
Description:
------------
Situation is very simple, in html file im creating a form. In this form is
only one field i.e. named "alias", the field has value "abc", form method
is "POST" and action "script.php". There is a submit button too. When the
script.php gets a request it contacentates three values: variable value,
variable name and again variable value.
It's look like this:
"abcalias=abc"
The tip is to add one more i.e. hidden field, but i think it is something
wrong.
Regards.
PS.Sorry for may english.
Reproduce code:
---------------
---- index.htm ----
<form action=script.php method=POST>
Something<input type=text name=alias>
<input type=submit value=GO>
</form>
----- script.php ----
<?
echo $_POST["alias"];
?>
Expected result:
----------------
abc
Actual result:
--------------
abcalias=abc
--
Edit bug report at http://bugs.php.net/?id=24145&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24145&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24145&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24145&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24145&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24145&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24145&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24145&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24145&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24145&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24145&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24145&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24145&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24145&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24145&r=gnused