Guest User

Untitled

a guest
Nov 29th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Login Form</title>
  6. <link rel="stylesheet" type="text/css" href="projet_htmlcss">
  7. </head>
  8. <body class="lg">
  9. <div class="bgimg">
  10. <div class="center">
  11. <img src="images.png" id="profil">
  12. <h2>User Login</h2>
  13. <form method="post" action="" onclick="displayAlert()">
  14. <div>
  15. <input type="text" name="username" class="inputbox" placeholder="User Name" id="id_username">
  16. </div>
  17. <br>
  18. <div>
  19. <input type="password" name="password" class="inputbox" placeholder="User Password" id="id_password">
  20. </div>
  21. <br>
  22. <div>
  23. <button type="submit" id="">Login</button>
  24. </div>
  25. <div class="fp">
  26. <button type="submit">Forget Password ?</button>
  27. </div>
  28. </form>
  29. </div>
  30. </div>
  31. <script>
  32. function validateform() {
  33. var username = document.getElementById("id_username").value;
  34. var password = document.getElementById("id_password").value;
  35. if (username && password) {
  36. window.location.assign ("adminpg.html");
  37. }
  38. else{
  39. alert("please fill the username and password correctly");
  40. return false;
  41. }
  42. }
  43. </script>
  44. </body>
  45. </html>
Add Comment
Please, Sign In to add comment