register_user($username,$password,$email)) { echo "registered"; }else { echo "didn't register"; } $_SESSION['username'] = $username; header('Location: /'); ?>