| 
	
 | 
 Posted by Jeremy on 06/03/07 22:34 
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  
php.ini. 
 
Prepending code to re-parse the postdata would solve the problem, but it  
seems lame to parse the postdata twice. 
 
Thanks, 
Jeremy
 
  
Navigation:
[Reply to this message] 
 |