session_start(); if (!session_is_registered("LLC")) { // if session check fails, invoke error handler header("Location: ../loginform.php"); exit(); } include("../include/dbconfig.php"); $connection = mysql_connect($db_host, $db_user, $db_pass) or die ("Unable to connect!"); mysql_select_db($db_name); $ID = $_POST["id"]; $dpt = $_POST["dpt"]; $firstname = trim($_POST["firstname"]); $lastname = trim($_POST["lastname"]); $extension = trim($_POST["extension"]); $email = trim($_POST["email"]); $home = trim($_POST["home"]); $cell = trim($_POST["cell"]); $contact = $_POST["contact"]; $preference = $_POST["preference"]; if ($firstname == '' or $lastname == '') { print "