|
calculateRate( $_SESSION[order][1][condo] , array( 1 => $_SESSION[order][1][adults] , 2 => $_SESSION[order][1][kids] ) , $_SESSION[order][1][start] , $_SESSION[order][1][stop] );
$CS->addOrder( $_SESSION[order] , $Rate );
header( "Location: https://www.rockypointtravel.com/thankyou.htm" );
} else {
switch ( $_REQUEST[process] ) {
case 2:
if($_REQUEST['email'] != $_REQUEST['email_verify'])
$_SESSION[errors][$_REQUEST[process]][$Into] = TRUE;
foreach ( array( "first_name" , "last_name" , "email", "email_verify" , "phone_day" ) as $Item ) validate( $Item );
$_SESSION['creditcard_name'] = $_REQUEST['first_name']." ".$_REQUEST['last_name'];
break;
case 3:
foreach ( array( "address1" , "city" , "state" , "cc_name" , "cc" , "cc_cvc", "zip" ) as $Item ) validate( $Item );
validate( "cc_exp_month" , "cc_exp" ); validate( "cc_exp_year" , "cc_exp" );
break;
case 4:
validate( "policy_check" );
break;
}
$NextStep = ( $_REQUEST[nextstep] ) ? $_REQUEST[nextstep] : $_REQUEST[process] + 1;
if ( $_SESSION[errors][$_REQUEST[process]] ) $NextStep = $_REQUEST[process];
header( "Location: ?step={$NextStep}" );
}
}
?>
Rocky Point Travel - Quotes & Reservations - Rocky Point, Mexico
|