Quick question:
Can the following script be modified to allow multiple users to have individual passwords leading to a specific page for each password?
<form>
<p>Client ID :
<input type=”text” name=”text2″>
Password :
<input type=”password” name=”text1″>
<input type=”button” value=”Log In” name=”Button” onclick=javascript:validate(text2.value,”cwide”,text1.value,”A6rz5″) >
</p>
</form>
<script language = “JavaScript”>
function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load(‘countrywide/base.htm’);
else
{
load(‘HTML_Script/loginfailed.htm’);
}
}
function load(url)
{
location.href=url;
}
</script>
Thanks in advance. ?
ps: I know and do not care that javascript passwords can be hacked by a spider monkey.