Artie
12-13-2009, 03:18 PM
Hey guys,
I'm new around here, and I would like some help. :)
This is the code :
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="VIP") {
if (form.pass.value=="16320606") {
location="adminspalace.htm"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
//-->
</script>
<form name="login" onsubmit="pasuser(this.form)">
<span class="style13">Username: </span>
<input name="id" type="text" size="15">
<br>
<span class="style13">Password: </strong></span>
<input name="pass"type="password" size="15">
<input type="submit" value="Login">
</form>
How would I make this redirect to a different page after an invalid password was entered?
And is it possible to remove the User ID, option entirely? Can I just have a password option?
I'm new around here, and I would like some help. :)
This is the code :
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="VIP") {
if (form.pass.value=="16320606") {
location="adminspalace.htm"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
//-->
</script>
<form name="login" onsubmit="pasuser(this.form)">
<span class="style13">Username: </span>
<input name="id" type="text" size="15">
<br>
<span class="style13">Password: </strong></span>
<input name="pass"type="password" size="15">
<input type="submit" value="Login">
</form>
How would I make this redirect to a different page after an invalid password was entered?
And is it possible to remove the User ID, option entirely? Can I just have a password option?