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
Post a Comment