Advertisement
Guest User

Untitled

a guest
May 18th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Register</title>
  5.  
  6. <link rel = "stylesheet" type = "style/css" href = "registerMe.css">
  7. </head>
  8. <body>
  9.  
  10. <div id = "container">
  11.  
  12. <h1>Register</h1>
  13. <hr>
  14.  
  15. <form method = "post" action = "../process/registerProcess.php" >
  16.  
  17. <fieldset>
  18.  
  19. <div class = "form-field">
  20. <label for = "username">Username:</label>
  21. <input type = "text" name = "username" required>
  22. </div>
  23.  
  24. <div class="form-field">
  25. <label for = "userPassword">Password:</label>
  26. <input type="password" id="userPassword">
  27. </div>
  28.  
  29. <div class="form-field">
  30. <label for = "userConfirmPassword">Confirm Password:</label>
  31. <input type="password" id="userConfirmPassword" onChange="checkPasswordMatch();">
  32. </div>
  33.  
  34. <div class="registrationFormAlert" id="divCheckPasswordMatch"> </div>
  35.  
  36. <div class = "form-field">
  37. <input type = "submit" name = "registerSubmit" value = "Register">
  38. </div>
  39.  
  40. <div class = "form-field">
  41. <input type = "reset" name = "registerReset" value = "Reset">
  42. </div>
  43.  
  44. </fieldset>
  45.  
  46. </form>
  47.  
  48. </div>
  49. <script type = "text/javascript" src = "jQuery Compressed/jquery.js"></script> //jQuery Compressed
  50. <script type = "text/javascript" src = "register/confirmPassword.js"></script>
  51.  
  52. function checkPasswordMatch()
  53. {
  54. var password = $("#userPassword").val(); //Grab the value of userPassword.
  55. var confirmPassword = $("#userConfirmPassword").val();
  56.  
  57. if (password != confirmPassword)
  58. {
  59. $("#divCheckPasswordMatch").html("Passwords do not match!");
  60. }
  61. else
  62. {
  63. $("#divCheckPasswordMatch").html("Passwords match.");
  64. }
  65.  
  66. }
  67.  
  68. $(document).ready(function ()
  69. {
  70. $("#userConfirmPassword").keyup(checkPasswordMatch);
  71. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement