Je bent je naam, e-mail adres, telefoonnummer of bericht vergeten in te vullen. Ook kan het zijn "; echo "dat je een verkeerd e-mail adres hebt ingevuld.

"; } // form + tabel echo "

"; echo ""; // tekst echo ""; // space echo ""; // naam echo ""; echo ""; // mail echo ""; echo ""; // mail echo ""; echo ""; // naam echo ""; echo ""; // mail echo ""; echo ""; // button echo ""; echo ""; // sluit form + tabel echo ""; echo "
Fill in the form below and we will contact you as soon as possible.
 
Name:
E-mail address:
Telephone number:
Concerning villa('s):
Multiple villas also possible!
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 .= "Telefoonnummer: " . $_POST['telefoonnummer'] . "\n"; $inhoud_mail .= "Villa: " . $_POST['villa'] . "\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['telefoonnummer'] = str_replace("\n", "", $_POST['telefoonnummer']); // Verwijder \n $_POST['telefoonnummer'] = str_replace("\r", "", $_POST['telefoonnummer']); // Verwijder \r $_POST['telefoonnummer'] = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $_POST['telefoonnummer'])); // Slashes van quotes mail($mail_ontv, $_POST['naam'], $inhoud_mail, $headers); //mail($mail_ontv2, $_POST['naam'], $inhoud_mail, $headers); echo "

Your email has been send

"; echo "

Thank you for sending an e-mail. You will soon get a reply "; echo "if it is needed.

"; echo "

We take everything seriously and your email will be handled as confidential. "; echo "Your email address will never be provided to third parties.

"; } ?>