\n"; $message .= "Verzonden: $sent\n"; $message .= "Aan: $to\n"; $message .= "Onderwerp: $subject \n"; } $message .= "\n" . $body; /* To send HTML mail, you can set the Content-type header. */ //$headers = "MIME-Version: 1.0\r\n"; //$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ /* $headers .= "To: Mary , Kelly \r\n"; $headers .= "From: Birthday Reminder \r\n"; $headers .= "Cc: birthdayarchive@example.com\r\n"; $headers .= "Bcc: birthdaycheck@example.com\r\n"; */ $headers .= "To: VerbiestLAN \r\n"; $headers .= "From: $from_name <$from>\r\n"; /* and now mail it */ return mail($to, $subject, $message, $headers); } // END mailit() //Function to check an e-mail addres. // Returns TRUE if adress is valid else FALSE. function isValidEmail($sEmail="") { if (stristr("$sEmail", "@")) { $check1 = TRUE; } // email should contain '@' if (stristr("$sEmail", ".")) { $check2 = TRUE; } // email should contain '.' if (strlen("$sEmail") > 8) { $check3 = TRUE; } // email length should be > 8 if (strlen("$sEmail")-stristr("$sEmail", ".")>=2) { $check4 = TRUE; } //after the '.' 2 or more chars should excist. // now validate: if ( $check1 && $check2 && $check3 && $check4) { return TRUE; } else { return FALSE; } } //Function to check the form input sent by user: function checkInput($FormData) { //initialize variables $Input = true; $name = $FormData['naam']; $email = $FormData['Email']; $onderwerp = $FormData['onderwerp']; $message = $FormData['body']; global $errors; //Global variables also exist outsite this function /* test input: */ if (empty($name)) { $errors .= "Je vergat je NAAM in te vullen!
\n"; $Input = false; } if (empty($email)) { $errors .= "Je vergat een e-mail adres in te vullen!
\n"; $Input = false; } elseif (!isValidEmail($email)) { $errors .= "Je e-mail adres is ongeldig! Vul een geldig e-mail adres in.
\n"; $Input = false; } if (empty($onderwerp)) { $errors .= "Je vergat een ONDERWERP in te vullen!
\n"; $Input = false; } if (empty($message)) { $errors .= "Je vergat een BERICHT te typen!
\n"; $Input = false; } return $Input; } ////////////////// // END FUNCTIONS ////////////////// ?> VerbiestLan, powered by Teknologic
 

Contact informatie

Met behulp van onderstaant e-mail formulier kunt u contact met ons opnemen. Vul hiervoor de velden in en klik op verzenden.
Het volgende bericht is succesvol verstuurd!
Naam:
[verplicht!]
" size="30">
E-mail adres:
[verplicht!]
" size="30">
onderwerp:
[verplicht!]
" size="51">
bericht:
[verplicht!]
 

 

 

VerbiestLan wordt mede
mogelijk gemaakt door: