Guest User

Untitled

a guest
Jun 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <?php
  2. include("includes/connect.php");
  3. ?>
  4. <body>
  5. <form name="reg" method="post" enctype="application/x-www-form-urlencoded">
  6. username: <input type="text" name="username" /><br />
  7. email: <input type="text" name="email" /><br />
  8. password1: <input type="password" name="password1" /><br/>
  9. password2: <input type="password" name="password2" /><br/>
  10. <input type="submit" name="submit" value="register" />
  11. </form>
  12. </body>
  13. <?php
  14. $username = $_POST['username'];
  15. $email = $_POST['email'];
  16. $password1 = $_POST['password1'];
  17. $password2 = $_POST['password2'];
  18.  
  19. if(password1 != password2)
  20. {
  21. echo "Your passwords do not match.";
  22. }
  23.  
  24. {
  25. else
  26. }
Add Comment
Please, Sign In to add comment