Ingevuld contactformulier:
Naam: | ".$naam." |
E-mail: | ".$emailadres." |
Adres: | ".$adres." |
Type brommer: | ".$brommer." |
Aantal personen: | ".$aantal." |
Bericht: | ".$bericht." |
| |
IP: | ".$ip." |
";
//From
$header="from: ".$naam." <".$emailadres.">\n
MIME-Version: 1.0\r\n
Content-Type: text/html; charset=utf-8\r\n
Content-Transfer-Encoding: 8bit\r\n\r\n";
//Mail van ontvanger
$to = 'kleint@tech.nhl.nl';
$send_contact=mail($to,"Inschrijving Willem Roggen Rit",$message,$header);
//Check if message sent to your email
if($send_contact){
header('Location: bedankt.php');
}
else {
header('Location: fout.php');
}
?>