} if ($airportName == 3) { $airport_id = 3; } if ($airportName == 4) { $airport_id = 4; } if ($airportName == 5) { $airport_id = 5; } sec_session_start(); $username = $_SESSION['username']; $userDetails = $data->getUsersDetails($username); $userID = $userDetails[0]; if (isset($userID["id"])) { $succeeded = $data->addBlogEntry($title, $content, $rank, $airport_id, $userID["id"]); } if (!$succeeded) { echo "Failure adding a new review!!!"; } } echo '<form id = "back_login" action = "protected_page.php" method = "POST">'; echo '<input type = "submit" value="Back to Account">'; echo '</form>'; echo '<form id = "sign_off" action = "includes/logout.php" method = "POST">'; echo '<input type = "submit" value="Sign Off">'; echo '</form>'; ?> </article> </div>