Advertisement
paradoxparty

password html

Apr 14th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <title>password</title>
  6.  
  7.  
  8. <script language="javascript">
  9.  
  10. function checkIt();
  11. {
  12. user = document.passwordform.user.value
  13. password = document.passwordform.password.value
  14. flag = 0
  15. alert ("Entering function")
  16. if((user == "milton1" && password == "klmb3r") ||
  17. if(user == "shelly" && password == "4ng31")
  18. {
  19. }
  20. else
  21. {
  22. flag = 1
  23. }
  24. if( flag == 1)
  25. {
  26. alert ("Invalid USERID or Password")
  27. }
  28. else
  29. return true
  30. }
  31.  
  32. </script>
  33. </head>
  34. <body>
  35. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Super Secret Login
  36. </br> </br>
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. <form name="passwordform"
  45. action="http://philscis.com/cgi-bin/quick.cgi"
  46. onSubmit="return checkIt()"
  47. method="post" >
  48.  
  49. UserID: <input type="text" name="user" > </br> </br>
  50. Password: <input type="text" name="password" >
  51.  
  52. </br></br></br>
  53. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type ="Submit" value = "Submit" />
  54. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <input type ="reset" value = "Clear" />
  55.  
  56. </form>
  57.  
  58. </br></br>
  59. <a href="http://ec2-52-34-114-212.us-west-2.compute.amazonaws.com/HomePage.php">Home </a>
  60. </body>
  61.  
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement