', "\n", $body);
$body = str_replace('
', "\n", $body);
$body = strip_tags($body);
}
$subject = str_replace('\n', '', $subject);
$subject = str_replace('\r', '', $subject);
if ($html) {
$header = 'MIME-Version: 1.0' . "\n";
$header .= 'Content-type: text/html; charset=iso-8859-15'."\n";
$header .= 'From: '.$receiver.' <'.$receiver.'>'."\n";
} else {
$header = 'MIME-Version: 1.0' . "\n";
$header .= 'From: '.$receiver.' <'.$receiver.'>'."\n";
}
if (mail($receiver, $subject, $body, $header)) {
return true;
} else {
return false;
}
}
function array_stripslashes(&$var) {
if(is_string($var)) {
$var = stripslashes($var);
} else {
if(is_array($var))
foreach($var as $key => $value)
array_stripslashes($var[$key]);
}
}
if(get_magic_quotes_gpc()){
array_stripslashes($_GET);
array_stripslashes($_POST);
array_stripslashes($_REQUEST);
array_stripslashes($_COOKIE);
}
if (!empty($_POST)) {
// Prüfung für das Feld "Name"
$errors['Vorname_Name'] = null; if (empty($_POST['Vorname_Name'])) {
$error = true;
$errors['Vorname_Name'] = ' class="error"'; }
// Prüfung für das Feld "Strasse_Nr"
$errors['Strasse_Nummer'] = null; if (empty($_POST['Strasse_Nummer'])) {
$error = true;
$errors['Strasse_Nummer'] = ' class="error"'; }
// Prüfung für das Feld "PLZ_Ort"
$errors['PLZ_Ort'] = null; if (empty($_POST['PLZ_Ort'])) {
$error = true;
$errors['PLZ_Ort'] = ' class="error"'; }
// Prüfung für das Feld "email"
$errors['eMail'] = null; if (empty($_POST['eMail'])) {
$error = true;
$errors['eMail'] = ' class="error"'; }
// Prüfung für das Feld "Bestellung"
$errors['Bestellung'] = null; if (empty($_POST['Bestellung'])) {
$error = true;
$errors['Bestellung'] = ' class="error"'; }
// Prüfung für das Feld "AGB"
$errors['AGBakzeptiert'] = null; if (empty($_POST['AGBakzeptiert'])) {
$error = true;
$errors['AGBakzeptiert'] = ' class="error"'; }
}
$_text_Vorname_Name = (!empty($_POST['Vorname_Name']) ? htmlspecialchars($_POST['Vorname_Name'], ENT_QUOTES, 'iso-8859-15') : null);
$_text_Strasse_Nummer = (!empty($_POST['Strasse_Nummer']) ? htmlspecialchars($_POST['Strasse_Nummer'], ENT_QUOTES, 'iso-8859-15') : null);
$_text_PLZ_Ort = (!empty($_POST['PLZ_Ort']) ? htmlspecialchars($_POST['PLZ_Ort'], ENT_QUOTES, 'iso-8859-15') : null);
$_text_eMail = (!empty($_POST['eMail']) ? htmlspecialchars($_POST['eMail'], ENT_QUOTES, 'iso-8859-15') : null);
$_text_Telefon = (!empty($_POST['Telefon']) ? htmlspecialchars($_POST['Telefon'], ENT_QUOTES, 'iso-8859-15') : null);
$_textarea_Bestellung = (!empty($_POST['Bestellung']) ? htmlspecialchars($_POST['Bestellung'], ENT_QUOTES, 'iso-8859-15') : null);
$_radio_AGBakzeptiert_Ja = (!empty($_POST['AGBakzeptiert']) && $_POST['AGBakzeptiert'] == 'Ja' ? ' checked="checked"' : null);
?>
HOME I AUFKLEBER I FARBEN I SCHRIFTEN I SPECIALS I ZUBEHÖR I PREISE I BESTELLUNG I ANLEITUNG I KONTAKT I FAQ's I AGBS's I IMPRESSUM I LINKS | ||||||||||
BESTELLUNG
|