|
|
|
|
|
|
|
|
|
|
|
|
Content:
Rooms |
2 |
Parking |
|
TV |
|
Balkony |
25m2 |
Special offer:
|
|
|
|
|
|
|
|
|
|
|
Reservation |
|
|
|
|
|
|
if ($_POST){
//provjera datuma
$datumOD = mktime(0, 0, 0, $_POST["dolazakm"], $_POST["dolazakd"], $_POST["dolazakg"]);
$datumDO = mktime(0, 0, 0, $_POST["odlazakm"], $_POST["odlazakd"], $_POST["odlazakg"]);
if ($datumOD > $datumDO){$err04 = true;}
if (strlen($_POST['realname']) < 3){$err01 = true;}
if (!strstr($_POST['email'], "@")){$err02 = true;}
if (strlen($_POST['telefon']) < 3){$err03 = true;}
if ($err01 or $err02 or $err03 or $err04){echo "Check the marked fields!";}
if (!$err01 and !$err02 and !$err03 and !$err04)
{$message = "Name and Surname: ".$_POST['realname']."\nE-mail: ".$_POST['email']."\nCountry: ".$_POST['drzava']."\nLanguage: english"."\nPhone number: ".$_POST['telefon']."\nNumber of persons: ".$_POST['broj_osoba']."\nArrival: ".$_POST['dolazakd'].".".$_POST['dolazakm'].".".$_POST['dolazakg']."."."\nDeparture: ".$_POST['odlazakd'].".".$_POST['odlazakm'].".".$_POST['odlazakg']."."."\nRemark: ".$_POST['napomena'];
/* recipients */
$to = $_POST['email'] . ", " ; // note the comma
/* subject */
$subject = "Reservation";
/* subject1 */
$subject1 = "Confirmation! Inquiry sent!";
/* message */
$message1 = "Apartment Crikvenica - www.kvarner-info.com/jasna"."\n\nYour inquiry is received! We will reply to your inquiry within the next 24 hours."."\n\nYour informations:"."\n".$message."\n\nBest regards,"."\n Jasna Gasparovic";
/* additional headers */
$headers .= "From: Jasna Gasparovic \r\n";
if ((mail("crikvenica@kvarner-info.com", $subject, $message, "From: ".$_POST['email']."\r\n"."Reply-To: ".$_POST['email']."\r\n")) and (mail($to, $subject1, $message1, $headers)))
{$report = true;}
}
}
?>
if($report) {?>
Thank You! |
Your inquiry is successfully send. |
We will reply to your inquiry within the next 24 hours. |
If within 10 minutes you do not receive email "Confirmation! Inquiry sent!" please repeat the reservation procedure. Thank you! |
} else { ?>
} ?>
|
|
|
|
|
|
|
|
|
|
|
|
|