Advertisement
Guest User

Untitled

a guest
Jun 4th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <?php
  2. echo"<h1>Register</h1>";
  3.  
  4. $submit = $_POST['reg'];
  5. $username = $_POST['username'];
  6. $password = $_POST['password'];
  7. $confpass = $_POST['confpassword'];
  8. $email = $_POST['email'];
  9.  
  10. if ($submit);
  11. {
  12. //check for feilds
  13. if ($username&&$password&&$confpass&&$email = "");
  14. {
  15. die("<b>Please enter evrything in all boxes</b>");
  16. }
  17. }
  18.  
  19. ?>
  20.  
  21. <html>
  22.  
  23. <form action='register.php' method='POST'>
  24.     <table>
  25.     <tr>
  26.     <td>
  27.     Pick a Username
  28.     </td>
  29.     <td>
  30.     <input type='text' name='username'/><br>
  31.     </td>
  32.     </tr>
  33.    
  34.     <tr>
  35.     <td>
  36.     Pick a Password
  37.     </td>
  38.     <td>
  39.     <input type='password' name='password'/><br>
  40.     </td>
  41.     </tr>
  42.    
  43.     <tr>
  44.     <td>
  45.     Repeat the Password
  46.     </td>
  47.     <td>
  48.     <input type='password' name='confpassword'/><br>
  49.     </td>
  50.     </tr>
  51.    
  52.     <tr>
  53.     <td>
  54.     Your Email
  55.     </td>
  56.     <td>
  57.     <input type='text' name='email'/><br>
  58.     </td>
  59.     </tr>
  60.     </table>
  61.     <input type="submit"  name="reg" value="Register"/>
  62. </form>
  63.  
  64. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement