Help....I am a Javascript newbie! I am trying to create a
js file with login IDs and passwords for multiple users. The code I have is for one user.
How do I change this code to accomodate multiple users:
- Code: Select all
function authUser(form) {
if (form.Username.value=="member1") {
if (form.Password.value=="testing") {
location="Welcome.html"
} else {
location="UnAuthorized.html"
}
} else {
location="UnAuthorized.html"
}
}
I have tried a whole lot of things but nothing recognizes more than one user. Any help would be greatly appreciated.