[insert_php]

if(isset($_GET[‘date_from’])){
$date_from = strtotime($_GET[‘date_from’]);
$query= ‘?date_from=’ . date(‘m/d/Y’,$date_from);
}else{
$date_from = strtotime(‘today’);
$query= ‘?date_from=’ . date(‘m/d/Y’,$date_from);
}

if (isset($_GET[‘num_nights’])) {
$num_nights = $_GET[‘num_nights’];
$query .= ‘&num_nights=’. $num_nights;
}else{
$num_nights = 2;
$query .= ‘&num_nights=’. $num_nights;
}

if(isset($_GET[‘coupon_code’])){
$coupon_code = $_GET[‘coupon_code’];
$query .= ‘&coupon_code=’. $coupon_code;
}

echo ‘

  

‘;

[/insert_php]