checkFeedback($_POST)){ if($user->insertFeedback($_POST,1)){ goto('message.php?id=4'); }else{ goto('message.php?id=2'); // @email_admin(); } }else{ goback(); // errors are stored in session } }else{ include($_SERVER['DOCUMENT_ROOT'].'/_includes/html/header.php'); include($_SERVER['DOCUMENT_ROOT'].'/contact-us.php'); include($_SERVER['DOCUMENT_ROOT'].'/_includes/html/footer.php'); unset($_SESSION['error']['feedback']); } ?>