Dot in POST parameter name gets converted to "_"

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've noticed that a dot in a POST parameter name - i.e.

<input name="person.first_name" type="text">

get converted to an underscore when populated into $_POST.  Presumably  
this is a throwback to register_globals, as the programmer would not be  
able to access the variables unless the dots were stripped (since dots  
are concatenation in PHP).  However, since register_globals is pretty  
much never used, I thought there might be a way to turn this off via  

Prepending code to re-parse the postdata would solve the problem, but it  
seems lame to parse the postdata twice.


Re: Dot in POST parameter name gets converted to "_"

Quoted text here. Click to load it

 There isn't.

Andy Hassall :: :: :: disk and FTP usage analysis tool

Site Timeline