Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <link rel="stylesheet" type="text/css" href="default.css" media="screen" />
- <script type="text/javascript">
- function checkPassword() {
- if(document.getElementById('passwd').value ==
- document.getElementById('repasswd').value) {
- }
- else {
- window.alert("Please type password correctly!");
- }
- }
- </script>
- <title></title>
- </head>
- <body>
- <div id="sign-up">
- <h2 class="green">Sign up</h2>
- <form action="reg.php" method="post">
- <table>
- <tr>
- <td><label for="username">email</label></td>
- <td><input type="text" name="email" id="email" /></td>
- </tr>
- <tr>
- <td><label for="passwd">Password</label></td>
- <td><input type="password" name="passwd" id="passwd" /></td>
- </tr>
- <tr>
- <td><label for="repasswd">Re-enter Password</label></td>
- <td><input type="password" name="repasswd" id="repasswd" /></td>
- </tr>
- </table>
- <input type="submit" onClick="checkPassword()" value="Sign Up" />
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement