if (isset($_POST['add_flight'])) {
                    $flight_id = $_POST['flight_id'];
                    $flight_owner = $_POST['flight_owner'];
                    $source = $_POST['source'];
                    $destination = $_POST['destination'];
                    $no_of_stoppage = $_POST['no_of_stoppage'];
                    $stoppage_1 = $_POST['stoppage_1'];
                    $stoppage_2 = $_POST['stoppage_2'];
                    $flight_depart = $_POST['flight_depart'];
                    $flight_arrive = $_POST['flight_arrive'];
                    $economy_price = $_POST['economy_price'];
                    $business_price = $_POST['business_price'];
                    $time_stop_1 = $_POST['time_stop_1'];
                    $time_stop_2 = $_POST['time_stop_2'];
                    $availability = $_POST['no_of_seats'];
                    $add_flight = $user_object->add_flight($con, $flight_id, $flight_owner, $source, $destination, $no_of_stoppage, $stoppage_1, $stoppage_2, $flight_depart, $flight_arrive, $economy_price, $business_price, $time_stop_1, $time_stop_2, $availability);
                    if ($add_flight) {
                        echo "Flight added successfully.";
                    }
                } else {
                    if (isset($_POST['update_flight_admin'])) {
                        $flight_id = $_POST['flight_id'];
                        $details = $user_object->flight_details_view($con, $flight_id);
                        if (mysqli_num_rows($details) == 0) {
                            echo '<h2>Please enter a valid Flight Id.</h2>';
                        } else {
                            echo '<h2>Flight Details for ' . $flight_id . '</h2>';
                            $link = "flight.php?flight_id=" . $flight_id;
                            ?>
		<table cellspacing="10">
		<form onsubmit="return update_flight()" action="<?php