function my_get_post($name,$escape=false) { $var_read = ''; if (isset($_POST[$name])) { $var_read = $_POST[$name]; if (get_magic_quotes_gpc()) $var_read=stripslashes($var_read); if ($escape) $var_read=htmlspecialchars($var_read,ENT_QUOTES); } return $var_read; } function isEmail($str) { if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $str)) return true; else return false; } function form_11_count_spam($str) { $nb=0; $word='http:'; if (stristr($str,$word)) $nb++; $word='<'; if (stristr($str,$word)) $nb++; $word='>'; if (stristr($str,$word)) $nb++; return $nb; } $form_11_class='form_11_error'; $form_11_error=''; $form_11_spam=0; $form_11_td_441_class='form_11_info'; $form_11_td_441_error=' '; $form_11_td_441_value=''; $form_11_td_442_class='form_11_info'; $form_11_td_442_error=' '; $form_11_td_442_value=''; $form_11_td_443_class='form_11_info'; $form_11_td_443_error=' '; $form_11_td_443_value=''; if ('lwHS3epA'==my_get_post('form_11_submit')) { $form_11_error_string='Er zijn fouten gevonden!!'; $form_11_td_441_error_class='form_11_error'; $form_11_td_441_error_must='Dit is een verplicht veld'; $form_11_td_441_error_spam='http: < > zijn niet toegestaan'; $form_11_td_441_value=my_get_post('Naam' ,true); $form_11_body.='Naam : '.my_get_post('Naam')."\r\n"; if (''==trim(my_get_post('Naam'))) {$form_11_td_441_class=$form_11_td_441_error_class; $form_11_td_441_error=$form_11_td_441_error_must; $form_11_error=$form_11_error_string;} $form_11_td_441_spam=form_11_count_spam(my_get_post('Naam')); if ($form_11_td_441_spam>0) { if ($form_11_td_441_class!=$form_11_td_441_error_class) {$form_11_td_441_class=$form_11_td_441_error_class; $form_11_td_441_error=$form_11_td_441_error_spam; $form_11_error=$form_11_error_string;} $form_11_spam += $form_11_td_441_spam; } $form_11_td_442_error_class='form_11_error'; $form_11_td_442_error_must='Dit is een verplicht veld'; $form_11_td_442_error_validation='Dit is geen bestaand e-mail adres'; $form_11_td_442_error_spam='http: < > zijn niet toegestaan'; $form_11_td_442_value=my_get_post('Email' ,true); $form_11_body.='Email : '.my_get_post('Email')."\r\n"; if (''==trim(my_get_post('Email'))) {$form_11_td_442_class=$form_11_td_442_error_class; $form_11_td_442_error=$form_11_td_442_error_must; $form_11_error=$form_11_error_string;} if ($form_11_td_442_class!=$form_11_td_442_error_class && ''!=trim(my_get_post('Email')) && !isEmail(my_get_post('Email'))) {$form_11_td_442_class=$form_11_td_442_error_class; $form_11_td_442_error=$form_11_td_442_error_validation; $form_11_error=$form_11_error_string;} $form_11_td_442_spam=form_11_count_spam(my_get_post('Email')); if ($form_11_td_442_spam>0) { if ($form_11_td_442_class!=$form_11_td_442_error_class) {$form_11_td_442_class=$form_11_td_442_error_class; $form_11_td_442_error=$form_11_td_442_error_spam; $form_11_error=$form_11_error_string;} $form_11_spam += $form_11_td_442_spam; } $form_11_td_443_error_class='form_11_error'; $form_11_td_443_error_spam='http: < > zijn niet toegestaan'; $form_11_td_443_value=my_get_post('Geefhieruwbevindingen' ,true); $form_11_body.='Geefhieruwbevindingen : '.my_get_post('Geefhieruwbevindingen')."\r\n"; $form_11_td_443_spam=form_11_count_spam(my_get_post('Geefhieruwbevindingen')); if ($form_11_td_443_spam>0) { if ($form_11_td_443_class!=$form_11_td_443_error_class) {$form_11_td_443_class=$form_11_td_443_error_class; $form_11_td_443_error=$form_11_td_443_error_spam; $form_11_error=$form_11_error_string;} $form_11_spam += $form_11_td_443_spam; } if (''==trim($form_11_error) && 0==$form_11_spam) { $receiver='info@lachaleur.nl'; $subject='Bestelling La Chaleur'; if (isEmail( $form_11_td_266_value )) $header='From: '.$form_11_td_266_value; $subject.=$form_11_td_267_value; $subject= substr($subject, 0, 255); $subject=str_replace("\n", " ", $subject); $subject=str_replace("\r", " ", $subject); $body=str_replace("\n.", "\n..", $form_11_body); if ($body!="") { $result=mail($receiver,$subject,$body,$header); if (!result) { echo 'ERROR: The PHP mail function mail($receiver,$subject,$body,$header); does not work properly on your server, please contact your web hosting.'; exit; } } if ($result) { $url='http://www.lachaleur.nl/feedback-thank-you.php'; if (!headers_sent()){ header('Location: '.$url); exit; }else{ echo ''; echo ''; exit; } exit; } } if (trim($form_11_error)) $form_11_error="
ReferentiesLees of geef hieronder uw belevingen en ervaringen in. Deze worden na goedkeuring op onze site geplaatst.
|