// Main Booking File session_start(); $choice = $_GET['choice']; $option = $_GET['option']; require 'functions.php'; require_once 'menu_html.php'; //include 'new_transport.php'; if ($choice == 'empty') { // Still no choice - first screen after login draw_header(); draw_empty_form(); draw_footer(); } if ($choice == 'transport') { //Checking which action if ($option == 'new') { include 'new_transport_booking.php'; } if ($option == 'edit') { $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'search_transport.php'; header("Location: http://$host$uri/$extra"); } } ?>