Guest Book







$kuau_email = "kuauinn@maui.net"; $Email = Trim($_POST['Email']); $email_from = $Email; $FirstName = Trim($_POST['FirstName']); $LastName = Trim($_POST['LastName']); $Arrival = Trim($_POST['Arrival']); $Departure = Trim($_POST['Departure']); $NumAdults = Trim($_POST['NumAdults']); $AgeChildren = Trim($_POST['AgeChildren']); $Comments = Trim($_POST['Comments']); $CMD = Trim($_POST['CMD']); $security = Trim($_POST['security']); //----- SEND CONFIRMATION EMAILS ----- $mailSent = false; IF ($CMD == "SEND") { if( strtolower($security) != "security"){ print "security image error"; exit; } $currentdate = date('Y-m-d'); $body = "INQUIRY:\r\n"; $body .= "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n"; $body .= "Date / Time: $currentdate\r\n"; $body .= "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n"; $body .= "First Name: ".$FirstName."\r\n"; $body .= "Last Name: ".$LastName."\r\n"; $body .= "Email: ".$Email."\r\n"; $body .= "Arrival Date: ".$Arrival."\r\n"; $body .= "Departure Date: ".$Departure."\r\n"; $body .= "Number Of Adults: ".$NumAdults."\r\n"; $body .= "Age Of Children: ".$AgeChildren."\r\n"; $body .= "Comments: ".$Comments."\r\n"; // SEND EMAIL $subject = "Inquiry"; mail($kuau_email, $subject, $body , "From: $email_from\r\n"); $mailSent = true; $CMD = ""; } ?>