Guest User

login

a guest
Feb 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Login Page</title>
  4. </head>
  5. <body>
  6. <form name="loginform" method="post" action="login.php">
  7. <table width="20%" bgcolor="0099CC" align="center">
  8. <tr>
  9. <td colspan=2><center><font size=4><b>HTML Login Page</b></font></center></td>
  10. </tr>
  11. <tr>
  12. <td>Username:</td>
  13. <td><input type="text" size=25 name="userid"></td>
  14. </tr>
  15. <tr>
  16. <td>Password:</td>
  17. <td><input type="password" size=25 name="pwd"></td>
  18. </tr>
  19. <tr>
  20. <td><input type="reset"</td>
  21. <td><input type="submit" onclick="return check(this.form)" value="login"></td>
  22. </tr>
  23. </table>
  24. </form>
  25. <script>
  26. function check(form)
  27. {
  28. if(form.userid.value=="Chaitali Take" && form.pwd.value=="codingshell")
  29. {
  30. return true;
  31. }
  32. else
  33. {
  34. alert("Error Password or Username")
  35. return false;
  36. }
  37. }
  38. </script>
  39. </body>
  40. </html>
Add Comment
Please, Sign In to add comment