n@dia
11-12-2003, 12:55 AM
Req code into html page enable login using ms access database with userid & password. following code leeds to error on page....
______________________________________________________
Header:
<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=="michelle") {
if (form.pass.value=="justin") {
location="target.html"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
//-->
</script>
Body:
<B>Login
Area</b>
<i><B>UserID:</b></i><Form name="login"><input
name="id" type="text">
<i><B>Password:</b></i><input name="pass"
type="password">
<input type="button" value="Login"
onClick="pasuser(this.form)"><Br><input
type="Reset"></form>
_______________________________________________
Your experience in this matter would be greatly appreciated!
PS. html page attached.
Regards
Nadia
______________________________________________________
Header:
<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=="michelle") {
if (form.pass.value=="justin") {
location="target.html"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
//-->
</script>
Body:
<B>Login
Area</b>
<i><B>UserID:</b></i><Form name="login"><input
name="id" type="text">
<i><B>Password:</b></i><input name="pass"
type="password">
<input type="button" value="Login"
onClick="pasuser(this.form)"><Br><input
type="Reset"></form>
_______________________________________________
Your experience in this matter would be greatly appreciated!
PS. html page attached.
Regards
Nadia