|
|
|
|
|
|
|
 |
 |
|
 |
|
Contact |
|
If you are joining us on a Day-Trip, why not tell your friends and get them to come? You can of course contact your friends by e-mail, but for your pleasure and convenience we have added this event to MySpace, Facebook, Last.fm and Hyves.
Telling the world you are going on a Day-Trip is just one click away...
This festival is a collaboration between Centipede Productions, Bom Voyage and Bad Taste Unlimited.
Do you want to volunteer, sponsor, run a stall or just ask a question? Please contact us through the form below and we will get to you as soon as possible.
|
|
|
 |
 |
|
 |
|
 |
// geef e-mail adres op van ontvanger
switch ($_POST['type']) {
case "general":
$mail_ontv = "info@touristfestival.nl";
break;
case "volunteering":
$mail_ontv = "info@touristfestival.nl";
break;
case "sponsoring":
$mail_ontv = "info@touristfestival.nl";
break;
case "stalls":
$mail_ontv = "info@touristfestival.nl";
break;
default:
$mail_ontv = "info@touristfestival.nl";
break;
}
$mail_ontv = "info@touristfestival.nl";
// is niet 100% !!!
function checkmail($mail)
{
$email_host = explode("@", $mail);
$email_host = $email_host['1'];
$email_resolved = gethostbyname($email_host);
if ($email_resolved != $email_host && eregi("^[0-9a-z]([-_.~]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$",$mail))
$valid = 1;
return $valid;
}
// als er niet op submit is gedrukt, of als er wel op is gedrukt maar niet alles ingevoerd is
if (!$_POST['submit'] || $_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['msggs'] || !$_POST['onderwerp']))
{
if ($_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['msggs'] || !$_POST['onderwerp']))
{
echo "You forgot to enter your name, email address, subject or message. Or maybe you entered a wrong email address. ";
}
// form + tabel
echo " ";
}
// versturen naar
else
{
// set datum
$datum = date("d.m.Y H:i");
// set ip
$ip = $_SERVER['REMOTE_ADDR'];
$inhoud_mail = "===================================================\n";
$inhoud_mail .= "Ingevuld 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 email has been sent. ";
echo "Thank you for your interest in our festival. ";
echo "We will get back to you as soon as possible. ";
}
?>
|  |
 |
|
 |
|
|
|
|
|
|