Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo"<h1>Register</h1>";
- $submit = $_POST['reg'];
- $username = $_POST['username'];
- $password = $_POST['password'];
- $confpass = $_POST['confpassword'];
- $email = $_POST['email'];
- if ($submit);
- {
- //check for feilds
- if ($username&&$password&&$confpass&&$email = "");
- {
- die("<b>Please enter evrything in all boxes</b>");
- }
- }
- ?>
- <html>
- <form action='register.php' method='POST'>
- <table>
- <tr>
- <td>
- Pick a Username
- </td>
- <td>
- <input type='text' name='username'/><br>
- </td>
- </tr>
- <tr>
- <td>
- Pick a Password
- </td>
- <td>
- <input type='password' name='password'/><br>
- </td>
- </tr>
- <tr>
- <td>
- Repeat the Password
- </td>
- <td>
- <input type='password' name='confpassword'/><br>
- </td>
- </tr>
- <tr>
- <td>
- Your Email
- </td>
- <td>
- <input type='text' name='email'/><br>
- </td>
- </tr>
- </table>
- <input type="submit" name="reg" value="Register"/>
- </form>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement