Skip to content

Instantly share code, notes, and snippets.

@juliend2
Created February 22, 2011 20:52
Show Gist options
  • Save juliend2/839361 to your computer and use it in GitHub Desktop.
Save juliend2/839361 to your computer and use it in GitHub Desktop.
form proxy
<?php
$from_city = @$_GET['from_city'] or $from_city = "";
$to_city = @$_GET['to_city'] or $to_city = "";
$departure_date = @$_GET['departure_date'] or $departure_date = "";
$return_date = @$_GET['return_date'] or $return_date = "";
$date_format = @$_GET['date_format'] or $date_format = "";
$adtQty = @$_GET['adtQty'] or $adtQty = '';
header('location: http://www.klm.com/travel/ca_fr/apps/ebt/ebt_home.htm?c[0].os='.$from_city.'&c[0].ds='.$to_city.'&c[0].dd='.$departure_date.'&c[1].dd='.$return_date.'&c[1].format='.$date_format.'&flex=true&ebt-cabin-class=ECO&adtQty='.$adtQty.'&goToPage=&cffcc=ECONOMY');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment