Here is my situation...
I have a text file that follows this format
username|password|email|firstname|lastname
username|password|email|firstname|lastname
username|password|email|firstname|lastname
username|password|email|firstname|lastname
Now when the user enters their email address, I want the script to find the line with their email address and take the username and password and email it to them. Basically I know how to send the email and explode the file to find a matching email. But how do I know what line the email is on so I can tell the script to go to this line, and read it into an array and just take the username and password out?
Please explain it and write the code. Thanks!