php - Case sensitive , add strtolower -


possible duplicate:
users register lower case letters

hi, have register page , , have script register lower case letters : pretty not want register :pretty , pretty , pretty ... here code , need add ?

public function addfield($field_name){      if (!array_key_exists($field_name, $this->fields))     {         if ($field_name=='username') {             $field = new field_join_username();             parent::registerfield($field);         }          if ($field_name=='email') {             $field = new field_join_email();             parent::registerfield($field);         }     }      parent::addfield($field_name); } 

where's code taken from? trying change existing code?

as far can see, adds fields not values of fields strtolower should applied, applying strtolower field_name won't trick ... it's hard guess place strtolower without seeing correct code snippet.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -