$nombre_envia = "Formulario online";
$email_envia = $_POST[para];
if($_POST[enviar] != ""){
$NOMBRE = $_POST[Nombre];
$APELLIDO = $_POST[Apellido];
$PAIS = $_POST[Pais];
$PROVINCIA = $_POST[Provincia];
$CIUDAD = $_POST[Ciudad];
$DIRECCION = $_POST[Direccion];
$ZIP = $_POST[ZIP];
$TEL = $_POST[Tel1];
$FAX = $_POST[Tel2];
$EMAIL = $_POST[Email];
$CEL = $_POST[Cel];
$COMENTARIO = $_POST[Mensaje];
$NINOS = intval($_POST[nC]);
$ADULTOS = intval($_POST[nA]);
$REDIRECT = $_POST[redirect];
$PARA = $_POST[para];
$TITLE = $_POST[title];
$REDIRECT = $_POST[redirect];
$YI = intval($_POST[yearA]);
$MI = intval($_POST[monthA]);
$DI = intval($_POST[dayA]);
$YS = intval($_POST[yearL]);
$MS = intval($_POST[monthL]);
$DS = intval($_POST[dayL]);
if($MS < 10)
{
$MS = "0$MS";
}
if($MI < 10)
{
$MI = "0$MI";
}
if($DS < 10)
{
$DS = "0$DS";
}
if($DI < 10)
{
$DI = "0$DI";
}
$FECHA_LLEGADA = "$YI-$MI-$DI";
$FECHA_SALIDA = "$YS-$MS-$DS";
$HORA_LLEGADA = $_POST[hora_llegada];
$MSG = "
Reservation form information
Name: $NOMBRE $APELLIDO
Email: $EMAIL
Telephone: $TEL
Fax: $FAX
Country: $PAIS
State: $PROVINCIA
City: $CIUDAD
Address: $DIRECCION
ZIP: $ZIP
Comments: $COMENTARIO
Children: $NINOS
Adults: $ADULTOS
Arrival Date: $FECHA_LLEGADA
Departure Date: $FECHA_SALIDA
";
$PARAMETROS = "nombre=$NOMBRE&apellido=$APELLIDO&pais=$PAIS&provincia=$PROVINCIA&ciudad=$CIUDAD&direccion=$DIRECCION&zip=$ZIP&tel=$TEL&cel=$CEL&fax=$FAX&email=$EMAIL&fecha_llegada=$FECHA_LLEGADA&fecha_salida=$FECHA_SALIDA&ninos=$NINOS&adultos=$ADULTOS&comentario=$COMENTARIO";
$REDIRECT = "reservation.php?".$PARAMETROS;
$FOPEN = "reservation.htm";
if($FOP = fopen($FOPEN,"r")){
$MSG = fread($FOP,filesize($FOPEN)+1);
fclose($FOP);
}
$MSG = str_replace("##NAME##","$NOMBRE $APELLIDO",$MSG);
$MSG = str_replace("##COUNTRY##",$PAIS,$MSG);
$MSG = str_replace("##STATE##",$PROVINCIA,$MSG);
$MSG = str_replace("##CITY##",$CIUDAD,$MSG);
$MSG = str_replace("##ADDRESS##",$DIRECCION,$MSG);
$MSG = str_replace("##ZIP##",$ZIP,$MSG);
$MSG = str_replace("##EMAIL##",$EMAIL,$MSG);
$MSG = str_replace("##PHONE01##",$TEL,$MSG);
$MSG = str_replace("##PHONE02##",$FAX,$MSG);
$MSG = str_replace("##CELLPHONE##",$CEL,$MSG);
$MSG = str_replace("##CHILDREN##",$NINOS,$MSG);
$MSG = str_replace("##ADULTS##",$ADULTOS,$MSG);
$MSG = str_replace("##ARRIVAL##","$FECHA_LLEGADA ($HORA_LLEGADA)",$MSG);
$MSG = str_replace("##DEPARTURE##",$FECHA_SALIDA,$MSG);
$MSG = str_replace("##COMMENTS##",$COMENTARIO,$MSG);
$headers="From: $EMAIL\n";
$headers.="X-Mailer: PHP\n";
$headers.="Reply-to: " . ${EMAIL} . "\n";
$headers.="Return-Path: ${EMAIL}\n";
$headers.= "MIME-Version: 1.0\n";
$headers.= "Content-Type: text/html; charset=iso-8859-1\n";
$headers.= "Content-Transfer-Encoding: 16bit.\n";
$headers.= "X-Priority: 3\n";
$S1 = @mail($PARA, $TITLE, $MSG, $headers);
$S2 = @mail($EMAIL, $TITLE, $MSG, $headers);
header("location: $REDIRECT");
// redirect
}else{?>
include_once("functions/functions.php");?>
Casa Rancho Costa Rica
Testimonial
Dear Janice,
I am writing to thank you, once again, for
a most wonderful week in the beautiful Casa
Rancho!
Everything was truly "top of the line"...the
service (your staff were all friendly, efficient
and courteous) the accommodations (the rooms
are beautifully appointed and spotless and
the art and enclosed courtyard are wonderful)
the pool (is so big and lovely...we loved
sitting on the in-pool seating by the cabana
at cocktail hour!) and the surroundings
(the gardens are lush and beautiful.)
I would highly recommend Casa Rancho to
anyone who wants to find a truly private
and idyllic vacation rental.
We will be back!
Sincerely, Bill and Maureen
YEAR
ROUND RATE
$21,000.00 per week for 12 to 14
people
INDIVIDUAL
ROOM RATES
(A minimum 3 day stay available betwwen
August 1st - December 15th. Prices inc taxes and continental
breakfast)
Tango
$250.00 us
Howler
$250.00 us
Palm
$250.00 us
Hibiscus
$250.00 us
Payments can be made to 'Casa
Rancho Inn S.A.'
The names and passport IDs
will be required from all residing parties
at the time of deposit, signing of contract
and waiver.
FOR SALE
$4,400,800.00us
Contact janice.seaton@gmail.com about details etc.