Contact

Contact

If you have any questions or you need help with your hotel reservation, please contact us:

5; if ($blnPostOkay) $blnPostOkay = $blnPostOkay && !empty($_POST['mail']); if ($blnPostOkay) $blnPostOkay = $blnPostOkay && checkmail($_POST['mail'])==1; if ($blnPostOkay) $blnPostOkay = $blnPostOkay && !empty($_POST['msggs']) && strlen($_POST['msggs']) > 10; if ($blnPostOkay) $blnPostOkay = $blnPostOkay && !empty($_POST['onderwerp']) && strlen($_POST['onderwerp']) > 5; } else { // prefill some variables, to re-use existing code in html if (!isset($_POST['mail'])) $_POST['mail'] = ''; if (!isset($_POST['msggs'])) $_POST['msggs'] = ''; if (!isset($_POST['onderwerp'])) $_POST['onderwerp'] = ''; if (!isset($_POST['naam'])) $_POST['naam'] = ''; } if (!$blnPostOkay) { // if ($_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['msggs'] || !$_POST['onderwerp'])) if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_POST['mail']=='' || $_POST['msggs']='' || $_POST['onderwerp'] == '' || $_POST['naam'] == '') { echo "Je bent je naam, e-mail adres, onderwerp of bericht vergeten in te vullen. Ook kan het zijn "; echo "dat je een verkeerd e-mail adres hebt ingevuld.

"; } } // form + tabel echo "

"; echo ""; // naam echo ""; echo ""; // space echo ""; // mail echo ""; echo ""; // space echo ""; // mail echo ""; echo ""; // space echo ""; // mail echo ""; echo ""; // space echo ""; // button echo ""; echo ""; // sluit form + tabel echo ""; echo "
Name:
 
E-mail address:
 
Subject:
 
Message:
 
 
"; } // versturen naar else { // set datum $datum = date("d.m.Y H:i"); // set ip $ip = $_SERVER['REMOTE_ADDR']; $inhoud_mail = "===================================================\n"; $inhoud_mail .= "Ingevulde contact formulier\n"; $inhoud_mail .= "===================================================\n\n"; $inhoud_mail .= $_SERVER['SCRIPT_URI'] . "\n\n"; $inhoud_mail .= "Naam: " . $_POST['naam'] . "\n"; $inhoud_mail .= "E-mail adres: " . $_POST['mail'] . "\n"; $inhoud_mail .= "Bericht:\n"; $inhoud_mail .= $_POST['msggs'] . "\n\n"; $inhoud_mail .= "Verstuurd op " . $datum . " via het ip " . $ip . "\n\n"; $inhoud_mail .= "===================================================\n\n"; // -------------------- // spambot protectie // ------ // van de tutorial: http://www.phphulp.nl/php/tutorials/10/340/ // ------ $headers = "From: " . $_POST['naam'] . " <" . $_POST['mail'] . ">"; $headers = stripslashes($headers); $headers = str_replace("\n", "", $headers); // Verwijder \n $headers = str_replace("\r", "", $headers); // Verwijder \r $headers = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $headers)); // Slashes van quotes $_POST['onderwerp'] = str_replace("\n", "", $_POST['onderwerp']); // Verwijder \n $_POST['onderwerp'] = str_replace("\r", "", $_POST['onderwerp']); // Verwijder \r $_POST['onderwerp'] = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $_POST['onderwerp'])); // Slashes van quotes mail($mail_ontv, $_POST['onderwerp'], $inhoud_mail, $headers); echo "

Your e-mail is send

"; echo "

Thank you for contacting us. You will receive an answer "; echo "as soon as possible if needed.

"; echo "

We will take your message seriuosly and will confidential handling of your information. "; echo "Your email address will not be disclosed to third parties.

"; } ?>