Guest User

Untitled

a guest
Mar 8th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Join the fun!</title>
  4. <script type="text/javascript">
  5. function checkPassword(){
  6. var pass = document.getElementById('password').value;
  7. var cpass = document.getElementById('cpassword').value;
  8. if(pass != cpass) {
  9. document.getElementById('confirm').innerHTML= 'Passwords do not match!';
  10. }
  11. }
  12.  
  13. </script>
  14. </head>
  15.  
  16. <body>
  17. <form method="post" action="user_register.php">
  18. <table>
  19. <tr>
  20. <td>
  21. Username:
  22. </td>
  23. <td>
  24. <input type="text" name="username" value="" maxlength="25"/>
  25. </td>
  26. </tr>
  27. <tr>
  28. <td>
  29. Password:
  30. </td>
  31. <td>
  32. <input type="password" name="password" value="" id="password"/>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td>
  37. Confrim Password:
  38. </td>
  39. <td>
  40. <input type="password" name="cpassword" value="" id="cpassword" onkeyup="checkPassword();" />
  41. </td>
  42. </tr>
  43. <tr>
  44. <td colspan="2">
  45. <span id="confirm"></span>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td>
  50. E-Mail Address:
  51. </td>
  52. <td>
  53. <input type="text" name="email" value="" />
  54. <tr>
  55. <td>
  56. </td>
  57. <td>
  58. <input type="submit" name="submit" value="Finish Registration" />
  59. </td>
  60. </tr>
  61. </table>
  62. </form>
  63. </body>
  64. </html>
Add Comment
Please, Sign In to add comment