session_start(); if ($_SESSION['loggedIn']) { include 'functions.php'; $userName = $_POST['user_id']; $password = $_POST['password']; $password2 = $_POST['password2']; if ($userName != "" && $password != "" && $password == $password2) runQuery("INSERT INTO ebreimer_users (user_id, password) VALUES ('$userName', '$password')"); } ?>