SHARE
TWEET

Untitled

a guest Jun 4th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(!empty($_POST));
  11. {
  12. // the form has been filled
  13. die("registered");
  14. }
  15. else
  16. die("Enter something into <b>all</b> boxes");
  17.  
  18. ?>
  19.  
  20. <html>
  21.  
  22. <form action='register.php' method='POST'>
  23.     <table>
  24.     <tr>
  25.     <td>
  26.     Pick a Username
  27.     </td>
  28.     <td>
  29.     <input type='text' name='username'/><br>
  30.     </td>
  31.     </tr>
  32.    
  33.     <tr>
  34.     <td>
  35.     Pick a Password
  36.     </td>
  37.     <td>
  38.     <input type='password' name='password'/><br>
  39.     </td>
  40.     </tr>
  41.    
  42.     <tr>
  43.     <td>
  44.     Repeat the Password
  45.     </td>
  46.     <td>
  47.     <input type='password' name='confpassword'/><br>
  48.     </td>
  49.     </tr>
  50.    
  51.     <tr>
  52.     <td>
  53.     Your Email
  54.     </td>
  55.     <td>
  56.     <input type='text' name='email'/><br>
  57.     </td>
  58.     </tr>
  59.     </table>
  60.     <input type="submit"  name="reg" value="Register"/>
  61. </form>
  62.  
  63. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top