Guest User

Untitled

a guest
Jun 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. <?php
  2. include("includes/connect.php");
  3. ?>
  4.  
  5.  
  6. <form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="POST">
  7.  
  8.  
  9. username: <input type="text" name="username" /><br />
  10.  
  11. email: <input type="text" name="email" /><br />
  12.  
  13. password1: <input type="password" name="password1" /><br/>
  14.  
  15. password2: <input type="password" name="password2" /><br/>
  16.  
  17. <input type="submit" name="submit" value="register" />
  18.  
  19. </form>
  20.  
  21.  
  22. <?php
  23. $username = $_POST['username'];
  24. $email = $_POST['email'];
  25. $password1 = $_POST['password1'];
  26. $password2 = $_POST['password2'];
  27.  
  28. if(password1 != password2)
  29. {
  30. echo "Your passwords do not match.";
  31. }
  32.  
  33. {
  34. else
  35. }
  36.  
  37. ?>
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. }
Add Comment
Please, Sign In to add comment