Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <?php
  2.  
  3. include_once "template.php";
  4. include_once "inc/database.php";
  5.  
  6. // Start our page
  7. $Title = "MonsterTopia | Thank You";
  8. pageHeader($Title);
  9.  
  10. $username = $_POST["username"];
  11. $password = $_POST["password"];
  12. $passwordconfirm = $_POST["passwordconfirm"];
  13. $email = $_POST["email"];
  14.  
  15. if ($username == "" | $password == "" | $email == "") {
  16. die ("Please make sure that you have filled in all required fields.");
  17. }
  18. elseif ($password != $passwordconfirm){
  19. die ("The password you entered do not match, please go back and check they match.");
  20. }
  21. else {
  22. mysql_query("INSERT INTO users VALUES ('$username', '$password','$email')");
  23. echo "Thanks for registering!";
  24. }
  25. // And close the page
  26. pageFooter();
  27.  
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement