$passenger = addslashes($_POST['passenger']);
 $origin = $_POST['origin'];
 $origin_label = $labels[$origin];
 $destination = $_POST['destination'];
 $destination_label = $labels[$destination];
 $gate = $gates[array_rand($gates)];
 // Yup, pick a random gate
 $date = date('m/d/Y H:i', $_POST['date']);
 // Convert date to string
 // Create pass
 //Set certifivate and path in the constructor
 $pass = new PKPass('../../Certificate.p12', 'test123');
 // Add the WWDR certificate
 $pass->setWWDRcertPath('../AppleWWDR.pem');
 //Check if an error occured within the constructor
 if ($pass->checkError($error) == true) {
     exit('An error occured: ' . $error);
 }
 //Or do it manually outside of the constructor
 /*
 	// Set the path to your Pass Certificate (.p12 file)
 	if($pass->setCertificate('../../Certificate.p12') == false) {
 		echo 'An error occured';
 		if($pass->checkError($error) == true) {
 			echo ': '.$error;
 		}
 		exit('.');
 	} 
 	// Set password for certificate
 	if($pass->setCertificatePassword('test123') == false) {
 		echo 'An error occured';