Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once "template.php";
- include_once "inc/database.php";
- // Start our page
- $Title = "MonsterTopia | Thank You";
- pageHeader($Title);
- $username = $_POST["username"];
- $password = $_POST["password"];
- $passwordconfirm = $_POST["passwordconfirm"];
- $email = $_POST["email"];
- if ($username == "" | $password == "" | $email == "") {
- die ("Please make sure that you have filled in all required fields.");
- }
- elseif ($password != $passwordconfirm){
- die ("The password you entered do not match, please go back and check they match.");
- }
- else {
- mysql_query("INSERT INTO users VALUES ('$username', '$password','$email')");
- echo "Thanks for registering!";
- }
- // And close the page
- pageFooter();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement