vcherubini
Programmer
Hello. I have a question to ask. <br><br>I have a script, about 215 lines, that allows an user to input a user name, password, and several other pieces of information about him/herself. The script then adds all of the information to a database, a text file, and prints it out on the page. <br><br>I have gotten that to work fine.<br><br>Here is my question. Right now I have the script where there is one default password, and the user can enter the password, and depending on what the password is, route them to the proper place.<br><br>How do I write a sub-routine, or another program, to allow the user to input their user name and password on the front page, call up the text file with the information in it, and then depending on whether the password matches the user name, will route them accordingly.<br><br>I know that this has to be simple, it is on most pages, even this one. <br><br>If anyone could help, I would be very appreciative.<br><br>Thank you in advance.