php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29204 problem with GET string
Submitted: 2004-07-16 11:39 UTC Modified: 2004-07-16 12:31 UTC
From: informatique at crt-bourgogne dot fr Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.0.0 OS: Win XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: informatique at crt-bourgogne dot fr
New email:
PHP Version: OS:

 

 [2004-07-16 11:39 UTC] informatique at crt-bourgogne dot fr
Description:
------------
In a form, i've 5 checkbox with same name : 
echo "<input name='ListeObjet[]' type='checkBox' value='HOT'>H?tel<br>\n";
...
But, when i validate the form, i've this in adress bar:
http://localhost/index.php?ListeObjet%5B%5D=HOT&ListeObjet%5B%5D=HLO&Step=2&image=Envoyer

So, the "[" is remplace by "%5B".
Sometimes, i've the same mistake with "&" whose remplace by "%26".

And.. i can't use the $_GET[] variable 'cause the result is allways wrong!

Sorry for my poor english, i'm french! :o)
 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-16 12:31 UTC] wenz@php.net
"5B" is the hex code for "[". In URLs, certain characters have to be replaced (encoded) by their hexadecimal value, as in this case. So this is expected behavior. If you do a Google search for "ListeObjet[]", the same effect can be seen. It's browser thing btw, not a PHP thing.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 20:01:35 2025 UTC