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 form_13_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; } 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 isNumber($str) { if(is_numeric($str)) return true; else return false; } $form_13_class='form_13_error'; $form_13_error=''; $form_13_spam=0; $form_13_td_458_class='form_13_info'; $form_13_td_458_error=' '; $form_13_td_458_value=''; $form_13_td_459_class='form_13_info'; $form_13_td_459_error=' '; $form_13_td_459_value=''; $form_13_td_460_class='form_13_info'; $form_13_td_460_error=' '; $form_13_td_460_value=''; $form_13_td_461_class='form_13_info'; $form_13_td_461_error=' '; $form_13_td_461_value=''; $form_13_td_462_class='form_13_info'; $form_13_td_462_error=' '; $form_13_td_462_value=''; $form_13_td_463_class='form_13_info'; $form_13_td_463_error=' '; $form_13_td_463_value=''; $form_13_td_464_class='form_13_info'; $form_13_td_464_error=' '; $form_13_td_464_value=''; $form_13_td_466_class='form_13_info'; $form_13_td_466_error=' '; $form_13_td_466_value=''; $form_13_td_467_class='form_13_info'; $form_13_td_467_error=' '; $form_13_td_467_value=''; $form_13_td_468_class='form_13_info'; $form_13_td_468_error=' '; $form_13_td_468_value=''; $form_13_td_469_class='form_13_info'; $form_13_td_469_error=' '; $form_13_td_469_value=''; if ('nAN0dqDQ'==my_get_post('form_13_submit')) { $form_13_error_string='Er zijn fouten gevonden!!'; $form_13_td_458_error_class='form_13_error'; $form_13_td_458_error_must='Dit is een verplicht veld'; $form_13_td_458_error_spam='http: < > zijn niet toegestaan'; $form_13_td_458_value=my_get_post('Naam' ,true); $form_13_body.='Naam : '.my_get_post('Naam')."\r\n"; if (''==trim(my_get_post('Naam'))) {$form_13_td_458_class=$form_13_td_458_error_class; $form_13_td_458_error=$form_13_td_458_error_must; $form_13_error=$form_13_error_string;} $form_13_td_458_spam=form_13_count_spam(my_get_post('Naam')); if ($form_13_td_458_spam>0) { if ($form_13_td_458_class!=$form_13_td_458_error_class) {$form_13_td_458_class=$form_13_td_458_error_class; $form_13_td_458_error=$form_13_td_458_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_458_spam; } $form_13_td_459_error_class='form_13_error'; $form_13_td_459_error_must='Dit is een verplicht veld'; $form_13_td_459_error_validation='Dit is geen bestaand e-mail adres'; $form_13_td_459_error_spam='http: < > zijn niet toegestaan'; $form_13_td_459_value=my_get_post('Email' ,true); $form_13_body.='Email : '.my_get_post('Email')."\r\n"; if (''==trim(my_get_post('Email'))) {$form_13_td_459_class=$form_13_td_459_error_class; $form_13_td_459_error=$form_13_td_459_error_must; $form_13_error=$form_13_error_string;} if ($form_13_td_459_class!=$form_13_td_459_error_class && ''!=trim(my_get_post('Email')) && !isEmail(my_get_post('Email'))) {$form_13_td_459_class=$form_13_td_459_error_class; $form_13_td_459_error=$form_13_td_459_error_validation; $form_13_error=$form_13_error_string;} $form_13_td_459_spam=form_13_count_spam(my_get_post('Email')); if ($form_13_td_459_spam>0) { if ($form_13_td_459_class!=$form_13_td_459_error_class) {$form_13_td_459_class=$form_13_td_459_error_class; $form_13_td_459_error=$form_13_td_459_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_459_spam; } $form_13_td_460_error_class='form_13_error'; $form_13_td_460_error_spam='http: < > zijn niet toegestaan'; $form_13_td_460_value=my_get_post('Adres' ,true); $form_13_body.='Adres : '.my_get_post('Adres')."\r\n"; $form_13_td_460_spam=form_13_count_spam(my_get_post('Adres')); if ($form_13_td_460_spam>0) { if ($form_13_td_460_class!=$form_13_td_460_error_class) {$form_13_td_460_class=$form_13_td_460_error_class; $form_13_td_460_error=$form_13_td_460_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_460_spam; } $form_13_td_461_error_class='form_13_error'; $form_13_td_461_error_must='Dit is een verplicht veld'; $form_13_td_461_error_spam='http: < > zijn niet toegestaan'; $form_13_td_461_value=my_get_post('Postcode' ,true); $form_13_body.='Postcode : '.my_get_post('Postcode')."\r\n"; if (''==trim(my_get_post('Postcode'))) {$form_13_td_461_class=$form_13_td_461_error_class; $form_13_td_461_error=$form_13_td_461_error_must; $form_13_error=$form_13_error_string;} $form_13_td_461_spam=form_13_count_spam(my_get_post('Postcode')); if ($form_13_td_461_spam>0) { if ($form_13_td_461_class!=$form_13_td_461_error_class) {$form_13_td_461_class=$form_13_td_461_error_class; $form_13_td_461_error=$form_13_td_461_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_461_spam; } $form_13_td_462_error_class='form_13_error'; $form_13_td_462_error_must='Dit is een verplicht veld'; $form_13_td_462_error_spam='http: < > zijn niet toegestaan'; $form_13_td_462_value=my_get_post('Plaats' ,true); $form_13_body.='Plaats : '.my_get_post('Plaats')."\r\n"; if (''==trim(my_get_post('Plaats'))) {$form_13_td_462_class=$form_13_td_462_error_class; $form_13_td_462_error=$form_13_td_462_error_must; $form_13_error=$form_13_error_string;} $form_13_td_462_spam=form_13_count_spam(my_get_post('Plaats')); if ($form_13_td_462_spam>0) { if ($form_13_td_462_class!=$form_13_td_462_error_class) {$form_13_td_462_class=$form_13_td_462_error_class; $form_13_td_462_error=$form_13_td_462_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_462_spam; } $form_13_td_463_error_class='form_13_error'; $form_13_td_463_error_must='Dit is een verplicht veld'; $form_13_td_463_error_validation='Alleen nummer invoer toegestaan'; $form_13_td_463_error_spam='http: < > zijn niet toegestaan'; $form_13_td_463_value=my_get_post('Telefoon' ,true); $form_13_body.='Telefoon : '.my_get_post('Telefoon')."\r\n"; if (''==trim(my_get_post('Telefoon'))) {$form_13_td_463_class=$form_13_td_463_error_class; $form_13_td_463_error=$form_13_td_463_error_must; $form_13_error=$form_13_error_string;} if ($form_13_td_463_class!=$form_13_td_463_error_class && ''!=trim(my_get_post('Telefoon')) && !isNumber(my_get_post('Telefoon'))) {$form_13_td_463_class=$form_13_td_463_error_class; $form_13_td_463_error=$form_13_td_463_error_validation; $form_13_error=$form_13_error_string;} $form_13_td_463_spam=form_13_count_spam(my_get_post('Telefoon')); if ($form_13_td_463_spam>0) { if ($form_13_td_463_class!=$form_13_td_463_error_class) {$form_13_td_463_class=$form_13_td_463_error_class; $form_13_td_463_error=$form_13_td_463_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_463_spam; } $form_13_td_464_error_class='form_13_error'; $form_13_td_464_error_must='Dit is een verplicht veld'; $form_13_td_464_error_validation='Alleen nummer invoer toegestaan'; $form_13_td_464_error_spam='http: < > zijn niet toegestaan'; $form_13_td_464_value=my_get_post('Mobiel' ,true); $form_13_body.='Mobiel : '.my_get_post('Mobiel')."\r\n"; if (''==trim(my_get_post('Mobiel'))) {$form_13_td_464_class=$form_13_td_464_error_class; $form_13_td_464_error=$form_13_td_464_error_must; $form_13_error=$form_13_error_string;} if ($form_13_td_464_class!=$form_13_td_464_error_class && ''!=trim(my_get_post('Mobiel')) && !isNumber(my_get_post('Mobiel'))) {$form_13_td_464_class=$form_13_td_464_error_class; $form_13_td_464_error=$form_13_td_464_error_validation; $form_13_error=$form_13_error_string;} $form_13_td_464_spam=form_13_count_spam(my_get_post('Mobiel')); if ($form_13_td_464_spam>0) { if ($form_13_td_464_class!=$form_13_td_464_error_class) {$form_13_td_464_class=$form_13_td_464_error_class; $form_13_td_464_error=$form_13_td_464_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_464_spam; } $form_13_td_466_error_class='form_13_error'; $form_13_td_466_error_validation='Alleen nummer invoer toegestaan'; $form_13_td_466_error_spam='http: < > zijn niet toegestaan'; $form_13_td_466_value=my_get_post('Artikelnr1' ,true); $form_13_body.='Artikelnr1 : '.my_get_post('Artikelnr1')."\r\n"; if ($form_13_td_466_class!=$form_13_td_466_error_class && ''!=trim(my_get_post('Artikelnr1')) && !isNumber(my_get_post('Artikelnr1'))) {$form_13_td_466_class=$form_13_td_466_error_class; $form_13_td_466_error=$form_13_td_466_error_validation; $form_13_error=$form_13_error_string;} $form_13_td_466_spam=form_13_count_spam(my_get_post('Artikelnr1')); if ($form_13_td_466_spam>0) { if ($form_13_td_466_class!=$form_13_td_466_error_class) {$form_13_td_466_class=$form_13_td_466_error_class; $form_13_td_466_error=$form_13_td_466_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_466_spam; } $form_13_td_467_error_class='form_13_error'; $form_13_td_467_error_spam='http: < > zijn niet toegestaan'; $form_13_td_467_value=my_get_post('Omschrijving1' ,true); $form_13_body.='Omschrijving1 : '.my_get_post('Omschrijving1')."\r\n"; $form_13_td_467_spam=form_13_count_spam(my_get_post('Omschrijving1')); if ($form_13_td_467_spam>0) { if ($form_13_td_467_class!=$form_13_td_467_error_class) {$form_13_td_467_class=$form_13_td_467_error_class; $form_13_td_467_error=$form_13_td_467_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_467_spam; } $form_13_td_468_error_class='form_13_error'; $form_13_td_468_error_validation='Alleen nummer invoer toegestaan'; $form_13_td_468_error_spam='http: < > zijn niet toegestaan'; $form_13_td_468_value=my_get_post('Artikelnr2' ,true); $form_13_body.='Artikelnr2 : '.my_get_post('Artikelnr2')."\r\n"; if ($form_13_td_468_class!=$form_13_td_468_error_class && ''!=trim(my_get_post('Artikelnr2')) && !isNumber(my_get_post('Artikelnr2'))) {$form_13_td_468_class=$form_13_td_468_error_class; $form_13_td_468_error=$form_13_td_468_error_validation; $form_13_error=$form_13_error_string;} $form_13_td_468_spam=form_13_count_spam(my_get_post('Artikelnr2')); if ($form_13_td_468_spam>0) { if ($form_13_td_468_class!=$form_13_td_468_error_class) {$form_13_td_468_class=$form_13_td_468_error_class; $form_13_td_468_error=$form_13_td_468_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_468_spam; } $form_13_td_469_error_class='form_13_error'; $form_13_td_469_error_spam='http: < > zijn niet toegestaan'; $form_13_td_469_value=my_get_post('Omschrijving2' ,true); $form_13_body.='Omschrijving2 : '.my_get_post('Omschrijving2')."\r\n"; $form_13_td_469_spam=form_13_count_spam(my_get_post('Omschrijving2')); if ($form_13_td_469_spam>0) { if ($form_13_td_469_class!=$form_13_td_469_error_class) {$form_13_td_469_class=$form_13_td_469_error_class; $form_13_td_469_error=$form_13_td_469_error_spam; $form_13_error=$form_13_error_string;} $form_13_spam += $form_13_td_469_spam; } if (''==trim($form_13_error) && 0==$form_13_spam) { $receiver='info@lachaleur.nl'; $subject='Bestelling La Chaleur'; $subject.=$form_13_td_35_value; $subject= substr($subject, 0, 255); $subject=str_replace("\n", " ", $subject); $subject=str_replace("\r", " ", $subject); $body=str_replace("\n.", "\n..", $form_13_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_13_error)) $form_13_error="
Bestelformulier
Na verzending van bovenstaand formulier en goedkeuring krijgt u, via het door u opgegeven emailadres, een factuur en
|