session_start(); if ($_SESSION['loggedIn']) { include 'functions.php'; $pageName = $_POST['page_name']; $pageColor = $_POST['page_color']; $pageContents = $_POST['page_contents']; if ($pageName != "" && $pageColor != "" && $pageContents != "") runQuery("INSERT INTO ebreimer_pages (page_name, page_color, page_contents) VALUES ('$pageName', '$pageColor', '$pageContents')"); } ?>