Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.97 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="stylesheet" type="text/css" href="default.css" media="screen" />
  6. <script type="text/javascript">
  7. function checkPassword() {
  8.     if(document.getElementById('passwd').value ==
  9.     document.getElementById('repasswd').value) {
  10.         }
  11.     else {
  12.         window.alert("Please type password correctly!");
  13.     }
  14. }
  15. </script>
  16. <title></title>
  17. </head>
  18. <body>
  19. <div id="sign-up">
  20. <h2 class="green">Sign up</h2>
  21. <form action="reg.php" method="post">
  22. <table>
  23. <tr>
  24.  
  25. <td><label for="username">email</label></td>
  26. <td><input type="text" name="email" id="email" /></td>
  27. </tr>
  28. <tr>
  29. <td><label for="passwd">Password</label></td>
  30. <td><input type="password" name="passwd" id="passwd" /></td>
  31. </tr>
  32. <tr>
  33. <td><label for="repasswd">Re-enter Password</label></td>
  34. <td><input type="password" name="repasswd" id="repasswd" /></td>
  35. </tr>
  36. </table>
  37. <input type="submit" onClick="checkPassword()" value="Sign Up" />
  38. </form>
  39.  
  40. </div>
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement