is there a cleaner and more efficent way to wright this. i need 20+ different passwords. client wants to keep to htm and php no mySQL.
password = inputName
if (password == “pkc”) {
inputStatus = “Access granted!” ;
getURL(“managers_page2.htm”, _self);
} else {
inputStatus = “Access denied!” ;
getURL(“error.htm”, _self);
}
if (password == “pk06”) {
inputStatus = “Access granted!” ;
getURL(“managers_page3.htm”, _self);
} else {
inputStatus = “Access denied!” ;
getURL(“error.htm”, _self);
}
if (password == “kelly06”) {
inputStatus = “Access granted!” ;
getURL(“managers_page.htm”, _self);
} else {
inputStatus = “Access denied!” ;
getURL(“error.htm”, _self);
}
any help would be great-