php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16759 POST cutting names
Submitted: 2002-04-23 11:35 UTC Modified: 2002-04-24 04:34 UTC
From: puskajler at telecom dot sk Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.2.0 OS: win2000, IIS 5.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: puskajler at telecom dot sk
New email:
PHP Version: OS:

 

 [2002-04-23 11:35 UTC] puskajler at telecom dot sk
Using the POST method cause cutting the first character 
from the name of the form control. Using the GET method works as expected (no cutting).

example:
<FORM METHOD=POST ACTION="debug.php">
<INPUT TYPE="submit" NAME="action" VALUE="val">
</FORM>

gives result:
    [_POST] => Array
        (
            [ction] => val
        )

quick-fix:
just prefix all NAMEs with any char 
(NAME="action" becomes NAME="_action")


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-23 18:48 UTC] sniper@php.net
What was the previous version of PHP on your machine?
Did you update also the php4ts.dll file from the 4.2.0 package?

 [2002-04-24 04:27 UTC] puskajler at telecom dot sk
sorry for the inconvenience, it was my fault ...

After double checking I have found that my IIS was still using old php4isapi.dll from the php-4.1.2 package

now everything works well ...

thanks for your time
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 05:01:28 2024 UTC