daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Jun 4th, 2017 68 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. $check=$_POST['check'];
  10.  
  11. if ($check);
  12. {
  13. //check for feilds
  14. if ($username && $password &&$ confpass &&$ email = "");
  15. {
  16. die("<b>Please enter evrything in all boxes</b>");
  17. }
  18. }
  19.  
  20. ?>
  21.  
  22. <html>
  23.  
  24. <form action='register.php' method='POST'>
  25.     <table>
  26.     <tr>
  27.     <td>
  28.     Pick a Username
  29.     </td>
  30.     <td>
  31.     <input type='text' name='username'/><br>
  32.     </td>
  33.     </tr>
  34.    
  35.     <tr>
  36.     <td>
  37.     Pick a Password
  38.     </td>
  39.     <td>
  40.     <input type='password' name='password'/><br>
  41.     </td>
  42.     </tr>
  43.    
  44.     <tr>
  45.     <td>
  46.     Repeat the Password
  47.     </td>
  48.     <td>
  49.     <input type='password' name='confpassword'/><br>
  50.     </td>
  51.     </tr>
  52.    
  53.     <tr>
  54.     <td>
  55.     Your Email
  56.     </td>
  57.     <td>
  58.     <input type='text' name='email'/><br>
  59.     </td>
  60.     </tr>
  61. <tr>
  62. <td>
  63. <input type="hidden" name="check" value="1">
  64. </td>
  65. </tr>
  66.     </table>
  67.     <input type="submit"  name="reg" value="Register"/>
  68. </form>
  69.  
  70. </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