I have a file with members names and passwords in it that looks like this.
fredd fredd
namheul namheul
tom tom
i have a page with a username box and a password box on it. You type the details in and click submit, then it goes to the file with a script that searches the members file for the username and password that you entered and if it finds them it displays "Yes" else it says "No".
NOW, my problem is that if i were enter tom as the username and tom as the password then it would display "nonoyes". It does this because it sees "fredd" and it is not what i entered so it displays "no, it then sees namheul and knows that it isnt what i entered, so it displays "no", then it sees tom and it knows that it is what i entered so it displays "yes". What i want to do is say that as soon as it displays yes it goes to another page. HOW DO I DO THIS.