Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2. require_once('includes/airports.php');
  3.  
  4. if ($_SERVER['REQUEST_METHOD'] === 'POST') {  
  5.     if($_POST['airportStart']!==$_POST['airportEnd'] && isset($_POST['dateTime']) && $_POST['price']>0 && isset($_POST['duration'])){
  6.        $startAirport=$_POST['airportStart'];
  7.        $finalAirport=$_POST['airportEnd'];
  8.        $dateTime=$_POST['dateTime'];
  9.        $price=$_POST['price'];
  10.        
  11.        foreach ($airports as $key => $value){
  12.            
  13.            echo "$finalAirport";
  14.           // if($value['name']==$startAirport){
  15.               // $timeZoneOfStartAirport=$value['timezone'];
  16.          
  17.            }
  18.        
  19.     }
  20.    
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement