<?php include 'dbutil.php'; $obj = new DbUtil(); $email = $_POST['email']; $username = $_POST['username']; $password = SHA1($_POST['password']); $class = $_POST['class']; $race = $_POST['race']; if (isset($email) && isset($username) && isset($password) && isset($class) && isset($race)) { $obj->addUserApplication($email, $username, $password, $class, $race); header('Location: ../guildApp.php?success'); } else { header('Location: ../guildApp.php?appfailed'); }