I've looked around at many places..and haven't been able to find a funtion that I can understand for searching a text file.
Basically, I'm going to have a text file of names that my website currently supports....sorted in alphabetical order..IE:
ace
buck
max
thom
zoe
I want users to be able to request a new name to be added via a form, which I already have set up. But..when they request the name...I want the function to search through the text file and make sure that it's not already supported.
If the name is in the text file, I'd like to have it:
echo "The name you requested is already supported. Please click here.";
If the name is not in the text file, I'd like to have to have the function do approx. 5 other functions that I already have set up.
Any help would be greatly appreciated. Thanks!