Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
06-24-2008, 06:30 AM #1
- Join Date
- Jun 2008
- Thanked 0 Times in 0 Posts
Hi there, I urgently need to find a solution to the following problem. I need to add some scripting so the system will do the following:
Request the user's name!
If what is entered matches the data held then you are prompted to enter a password.
If this value matches as well then you receive a message saying "Welcome".
If the username is incorrect then a message appears saying "Unknown name".
If the password is incorrect then a message appears saying "Invalid password".
It has been suggested that the variable readerIndex can be used to store the index number of the logged-in reader in the three arrays of information. Negative value (e.g. -1) can represent the fact no reader has successfully logged in.
I have made a start on the script, but what is really holding me back is getting the program to cross-check the username. I would really appreciate any guidance. The script is below:
Last edited by Trinithis; 06-24-2008 at 07:16 AM.