robertphipps
06-15-2004, 02:04 PM
I would like to set up a simple password system. I am no java programmer, in fact am learning by doing, therefore needs simple explanation of needs to be simple script.
I have a password script that is suitable, but the password is stored as html on the page and checked with an if command.
I would like to continue to use the if command, check a string instead.
I would like to make one text file per password person. The procedure would be as follows:
David ..... would call david.txt inside which would be his password.
Sarah ..... would call sarah.txt ... and so on.
The problem is how can I easily read the word in the text file into a string?
I would use this string in the if equation. e.g. if (the password entered by the person) = (the password stored in their text file), all is goog!"!
I have a password script that is suitable, but the password is stored as html on the page and checked with an if command.
I would like to continue to use the if command, check a string instead.
I would like to make one text file per password person. The procedure would be as follows:
David ..... would call david.txt inside which would be his password.
Sarah ..... would call sarah.txt ... and so on.
The problem is how can I easily read the word in the text file into a string?
I would use this string in the if equation. e.g. if (the password entered by the person) = (the password stored in their text file), all is goog!"!