/*
* Slaapkenner Nico van de Nes - special_contact.inc.php
* Last updated on 12-01-2010 by PG
*
* Holds the contact form
* Is used when the field 'specialID' is set in 'tblContent'
*
*/
if($_SERVER['REQUEST_METHOD'] == "POST") {
sendForm();
} else {
showForm();
}
function sendForm() {
require("db_connect.inc.php");
require("sanitize_functions.inc.php");
$result = mysql_query("SELECT formEmail FROM tblSettings");
while($row = mysql_fetch_assoc($result)) {
$emailto = trim($row['formEmail']);
}
$naam = SanitizeText($_POST['naam']);
$adres = SanitizeText($_POST['adres']);
$postcode = SanitizeText($_POST['postcode']);
$woonplaats = SanitizeText($_POST['woonplaats']);
$telefoon = SanitizeText($_POST['telefoonnummer']);
$email = SanitizeText($_POST['emailadres']);
$reactie = SanitizeText($_POST['reactie']);
$ip = $_SERVER['REMOTE_ADDR'];
$mailmsg = "Reactie ontvangen via website van: \n\n";
$mailmsg .= "Naam: \t \t $naam\n";
$mailmsg .= "Adres: \t \t $adres\n";
$mailmsg .= "Postcode: \t $postcode\n";
$mailmsg .= "Woonplaats: \t $woonplaats\n";
$mailmsg .= "Telefoonnummer: \t $telefoon\n";
$mailmsg .= "E-mailadres: \t $email\n";
$mailmsg .= "IP-adres: \t \t $ip\n";
$mailmsg .= "Reactie: \n \n $reactie";
$headers = "From: website@slaapkennernicovandenes.nl" . "\r\n";
if($naam != "" && $reactie != "") {
mail($emailto, "Reactie via Slaapkennernicovandenes.nl", $mailmsg, $headers);
}
echo $emailto;
}
function showForm() {
?>
Via onderstaand formulier kunt u uw vraag of opmerking rechtstreeks naar Slaapkenner Nico van de Nes sturen.
Natuurlijk is het ook mogelijk een e-mail te sturen naar: info@slaapkennernicovandenes.nl
} ?> Openingstijden:
| Maandag: | 13:00 - 17:30 uur |
| Dinsdag: | 9:30 - 17:30 uur |
| Woensdag: | 9:30 - 17:30 uur |
| Donderdag: | 9:30 - 17:30 uur |
| Vrijdag: | 9:30 - 17:30 uur |
| Vrijdagavond: | 19:00 - 21:00 uur |
| Zaterdag: | 9:30 - 17:00 uur |
Contact:
Witte Paal 243
1742 LB Schagen
T: 0224 - 29 00 91
E: info@slaapkennernicovandenes.nl
Routebeschrijving >>