# Multiple password?

**URL:** <https://forum.kirupa.com/t/multiple-password/175877>\
**Category:** Uncategorized\
**Created:** [January 18, 2006, 2:42pm UTC](https://forum.kirupa.com/t/multiple-password/175877 "2006-01-18T14:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkcidstudio](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pkcidstudio](https://forum.kirupa.com/u/pkcidstudio)\
**Post date:** [January 18, 2006, 2:42pm UTC](https://forum.kirupa.com/t/multiple-password/175877/1 "2006-01-18T14:42:44Z")

</div>

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-
