Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>password</title>
- <script language="javascript">
- function checkIt();
- {
- user = document.passwordform.user.value
- password = document.passwordform.password.value
- flag = 0
- alert ("Entering function")
- if((user == "milton1" && password == "klmb3r") ||
- if(user == "shelly" && password == "4ng31")
- {
- }
- else
- {
- flag = 1
- }
- if( flag == 1)
- {
- alert ("Invalid USERID or Password")
- }
- else
- return true
- }
- </script>
- </head>
- <body>
- Super Secret Login
- </br> </br>
- <form name="passwordform"
- action="http://philscis.com/cgi-bin/quick.cgi"
- onSubmit="return checkIt()"
- method="post" >
- UserID: <input type="text" name="user" > </br> </br>
- Password: <input type="text" name="password" >
- </br></br></br>
- <input type ="Submit" value = "Submit" />
- <input type ="reset" value = "Clear" />
- </form>
- </br></br>
- <a href="http://ec2-52-34-114-212.us-west-2.compute.amazonaws.com/HomePage.php">Home </a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement