php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16966 convert form item names to "_" only for $GLOBALS, not for $HTTP_POST_VARS
Submitted: 2002-05-02 09:52 UTC Modified: 2010-12-22 15:05 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: danny dot milo at gmx dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.0 OS: Linux
Private report: No CVE-ID: None
 [2002-05-02 09:52 UTC] danny dot milo at gmx dot net
Hi!

I've been wondering for some time now:
Why its it that "." in form item names is _always_ converted to a "_" character?

It would be sufficient to do so just in the global variables (for register_globals = On), but why too for
$HTTP_POST_VARS["t_table.4322.some_field"] ? Its a hell to convert that back... 

I will switch to using arrays for form items now ($HTTP_POST_VARS["tables"]["t_table"][4322]["some_field"]), so its not important for me anymore, but according to the RFC a "." _is_ allowed in the form item's name! 

Well if you don't mind, please E-Mail me.

Thanks :)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 15:05 UTC] johannes@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-22 15:05 UTC] johannes@php.net
Duplicate of #34882
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC