I have a database of people and e-mail address collected into a simple text file in the form: $name~|~$email~|~ simply put. in order for someone to be e-mailed the password for a specific section of the site, they type their e-mail into a form and it searches through the text file through each e-mail and if it finds that e-mail, it sends the e-mail the password. The only problem i am having is Capitalization is preventing this from working. how do i filter the e-mails in the text file so that they are all lowercase, and also filter the field that the user types their e-mail in to recieve the password? sorry for my confusing explanation, but can anyone help? thanks, Nic