Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>Register</title>
- <link rel = "stylesheet" type = "style/css" href = "registerMe.css">
- </head>
- <body>
- <div id = "container">
- <h1>Register</h1>
- <hr>
- <form method = "post" action = "../process/registerProcess.php" >
- <fieldset>
- <div class = "form-field">
- <label for = "username">Username:</label>
- <input type = "text" name = "username" required>
- </div>
- <div class="form-field">
- <label for = "userPassword">Password:</label>
- <input type="password" id="userPassword">
- </div>
- <div class="form-field">
- <label for = "userConfirmPassword">Confirm Password:</label>
- <input type="password" id="userConfirmPassword" onChange="checkPasswordMatch();">
- </div>
- <div class="registrationFormAlert" id="divCheckPasswordMatch"> </div>
- <div class = "form-field">
- <input type = "submit" name = "registerSubmit" value = "Register">
- </div>
- <div class = "form-field">
- <input type = "reset" name = "registerReset" value = "Reset">
- </div>
- </fieldset>
- </form>
- </div>
- <script type = "text/javascript" src = "jQuery Compressed/jquery.js"></script> //jQuery Compressed
- <script type = "text/javascript" src = "register/confirmPassword.js"></script>
- function checkPasswordMatch()
- {
- var password = $("#userPassword").val(); //Grab the value of userPassword.
- var confirmPassword = $("#userConfirmPassword").val();
- if (password != confirmPassword)
- {
- $("#divCheckPasswordMatch").html("Passwords do not match!");
- }
- else
- {
- $("#divCheckPasswordMatch").html("Passwords match.");
- }
- }
- $(document).ready(function ()
- {
- $("#userConfirmPassword").keyup(checkPasswordMatch);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement