HashPassword($_POST['password']); setUserInfo($db, $session_user["0"]["userid"], $_POST['firstname'], $_POST['lastname'], $_POST['email'], $session_user["0"]["usertypeid"], $password); header('Location: ' . $_SERVER['PHP_SELF']); endif; endif; ?>