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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 04:01:32 2024 UTC