// -- local config -- session_start(); header("Cache-control: private"); // IE 6 Fix. //if(!$_SESSION['username']) if (false) { @include('login_form.php'); exit(0); } @include('db.php'); @include('equipment_db.php'); $db = mysql_select_db($database_name, $connection); if (!$db) { die("Could not select database:\n" . mysql_error() . "\n"); } // -- setup -- @include('fns.php'); // ---- echo "\n"; echo "
\n"; echo "\n"; echo "Logged in as user: {$username}\n"; echo "
\n"; // -- process -- $action = $_POST['book_new_btn']; if (isset($action)) { echo "\n"; echo "Processing your selections :-\n"; echo "
\n"; $date_from_year = $_POST['date_from_year']; $date_from_month = $_POST['date_from_month']; $date_from_day = $_POST['date_from_day']; echo "\n"; echo "Date from :- {$date_from_year}-{$date_from_month}-{$date_from_day}"; echo "
\n"; $date_to_year = $_POST['date_to_year']; $date_to_month = $_POST['date_to_month']; $date_to_day = $_POST['date_to_day']; echo "\n"; echo "Date to :- {$date_to_year}-{$date_to_month}-{$date_to_day}"; echo "
\n"; echo "\n"; echo "Done !\n"; echo "
\n"; echo "\n"; echo "\n"; echo " "; echo "\n"; echo " "; echo "
\n"; echo "