First time poster at this board.
I have a file userhomes.txt (not actual name) that contains user ID's and their homepages set up like:
uSer001多ttp://www.user001homepage.com
USer002多ttp://www.user001homepage.com
useR003多ttp://www.user001homepage.com
usEr004多ttp://www.user001homepage.com
User005多ttp://www.user001homepage.com
Notice that the user names contain upper and lower case letters. If they were all lower case, the answer to my question would be fairly easy.
But, as they are not all lower case, how can I return the correct information if the visitor types USER001 into a search field?
I know that I could edit the text file and change all user names to lowercase. But, if I can help it, I would rather not. There is another script that uses this file and the names have to match their login.
I think what I need the script to do is convert the input from the form into lower case letters, load the data from the txt file, convert the data to lower case and then do a comparison. Is this possible? If it is, could someone point me to a tutorial/example of this?
Any and all help is appreciated!
Thanks Matt!
Would also have said thanks to you Moby, if your reply did not sound so sarcastic. There ARE some people in the world that are just starting to learn cgi. Just thought I would clue you in to that. I missed the part in the agreement where it stated you need to be a guru to post here. Sorry I bothered to post at this board. I will go elsewhere for any further questions I might have.