php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24145 Problem using POST request
Submitted: 2003-06-12 05:30 UTC Modified: 2003-06-13 09:36 UTC
From: przemek at hexacom dot biz Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.3.1 OS: Linux Mandrake 9.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: przemek at hexacom dot biz
New email:
PHP Version: OS:

 

 [2003-06-12 05:30 UTC] przemek at hexacom dot biz
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-12 05:32 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

As far as I remember this is fixed already.
 [2003-06-12 07:08 UTC] mgf@php.net
Also see #18648
 [2003-06-13 09:36 UTC] przemek at hexacom dot biz
In PHP 4.3.2 everything works fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 06:01:29 2024 UTC