i need some help, i am new at this and wondering why my program isnt working can someone plz help me!
<html><head>
<title>Password Application</title>
<script type = "text/VBScript">
option explicit
function pass1()
dim intusername, intpassword, user
intusername = document.frmpass.txtusername.value
intpassword = document.frmpass.txtpassword.value
Select case user
Case 1
intusername="nemo" AND intpassword="Clown"
window.location.href = "Case 2
intusername="dory" AND intpassword="Blue"
window.location.href="Case 2
intusername="bruce" AND intpassword="Shark"
window.location.href="End select
location.href="bad.htm"
end function
</script>
<body>
<h3>Enter Username and Password</h3>
<form method="post" name="frmpass">
Username:<input type="text" name="txtusername" size="10"><br>
Password:<input type="text" name="txtpassword" size="10"> <br>
<input type="button" value="Login" name="btnSubmit" onClick="pass1()"> </form>
</body>
</html>
thanks!
<html><head>
<title>Password Application</title>
<script type = "text/VBScript">
option explicit
function pass1()
dim intusername, intpassword, user
intusername = document.frmpass.txtusername.value
intpassword = document.frmpass.txtpassword.value
Select case user
Case 1
intusername="nemo" AND intpassword="Clown"
window.location.href = "Case 2
intusername="dory" AND intpassword="Blue"
window.location.href="Case 2
intusername="bruce" AND intpassword="Shark"
window.location.href="End select
location.href="bad.htm"
end function
</script>
<body>
<h3>Enter Username and Password</h3>
<form method="post" name="frmpass">
Username:<input type="text" name="txtusername" size="10"><br>
Password:<input type="text" name="txtpassword" size="10"> <br>
<input type="button" value="Login" name="btnSubmit" onClick="pass1()"> </form>
</body>
</html>
thanks!