--- a/tripPlanner.php +++ b/tripPlanner.php @@ -11,6 +11,7 @@ } function tripPlanForm($errorMessage = "") { + global $date, $time, $from, $to; echo "$errorMessage"; echo '