Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Join the fun!</title>
- <script type="text/javascript">
- function checkPassword(){
- var pass = document.getElementById('password').value;
- var cpass = document.getElementById('cpassword').value;
- if(pass != cpass) {
- document.getElementById('confirm').innerHTML= 'Passwords do not match!';
- }
- }
- </script>
- </head>
- <body>
- <form method="post" action="user_register.php">
- <table>
- <tr>
- <td>
- Username:
- </td>
- <td>
- <input type="text" name="username" value="" maxlength="25"/>
- </td>
- </tr>
- <tr>
- <td>
- Password:
- </td>
- <td>
- <input type="password" name="password" value="" id="password"/>
- </td>
- </tr>
- <tr>
- <td>
- Confrim Password:
- </td>
- <td>
- <input type="password" name="cpassword" value="" id="cpassword" onkeyup="checkPassword();" />
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <span id="confirm"></span>
- </td>
- </tr>
- <tr>
- <td>
- E-Mail Address:
- </td>
- <td>
- <input type="text" name="email" value="" />
- <tr>
- <td>
- </td>
- <td>
- <input type="submit" name="submit" value="Finish Registration" />
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment