Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <head>
  2. <title>PJsignup</title>
  3. <meta charset = "utf-8">
  4. <meta name = "viewport" content = "width = device-width, initial-scale=1.0">
  5.  
  6. <script type = "text/javascript">
  7. function validateEmail() {
  8. var $email = document.getElementById("email").value;
  9. var filter = b[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}b;
  10. if (filter.test(email)) {
  11. return true;
  12. }
  13. else {
  14. alert("Please enter a valid email");
  15. return false;
  16. }
  17. }
  18.  
  19. </script>
  20. </head>
  21.  
  22. <body>
  23. <div class = "container">
  24.  
  25. <form action = "Users.php" method = "post">
  26. <fieldset>
  27. <legend>Sign up</legend>
  28. <label>First Name:<br/>
  29. <input type = "text" name = "fName" required></label><br/>
  30. <label>Last Name:<br/>
  31. <input type = "text" name = "lName" required></label><br/>
  32. <label>Email:<br/>
  33. <input type = "text" name = "email" id = "email" required/></label><br/>
  34. <label>Username:<br/>
  35. <input type = "text" name = "username" id = "username" required/></label><br/>
  36. <label>Password:<br/>
  37. <input type = "password" placeholder = "8 characters or more" name = "password" min = "8" required/></label><br/>
  38. <label>Confirm Password:<br/>
  39. <input type = "password" placeholder = "Confirm password" name = "confirm_password" required/></label><br/>
  40. <br/><input type = "submit" value = "Signup" onclick = "Javascript:checkEmail();">
  41. </fieldset>
  42. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement