Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "<h1>Register</h1>";
- $submit = $_POST['submit'];
- $email = strip_tags($_POST['email']);
- $username = strip_tags($_POST['username']);
- $password = md5(strip_tags($_POST['password']));
- $repeatpassword = md5(strip_tags($_POST['repeatpassword']));
- $date = date("Y-m-d");
- if ($submit)
- {
- if ($email&&$username&&$password&&$repeatpassword)
- {
- $password = md5($password);
- $repeatpassword = md5($repeatpassword);
- if ($password==$repeatpassword)
- {
- }
- else
- echo "Your passwords do not match!";
- }
- else
- {
- echo "Success";
- }
- }
- ?>
- <html>
- <p>
- <form action='register.php' method='POST'>
- <table
- <tr>
- <td>
- Your Email
- </td>
- <td>
- <input type='text' name='email'>
- </td>
- </tr>
- <tr>
- <td>
- Username
- </td>
- <td>
- <input type='text' name='username'>
- </td>
- </tr>
- <tr>
- <td>
- Password
- </td>
- <td>
- <input type='password' name='password'>
- </td>
- </tr>
- <tr>
- <td>
- Repeat Password
- </td>
- <td>
- <input type='password' name='repeatpassword'>
- </td>
- </tr>
- </table>
- <input type='submit' name'submit' value='Register'>
- </form>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement