"Name", "email"=>"eMail-Adresse", "nachricht"=>"Nachricht", "nlaenge"=>"Länge der Nachricht" ); if (isset($_POST["action"])) { $betreff = trim($_POST["betreff"]); $nachricht = trim(ucwords($_POST["nachricht"])); $name = trim(ucwords($_POST["name"])); $vorname = trim(ucwords($_POST["vorname"])); $firma = trim(ucwords($_POST["firma"])); $strasse = trim($_POST["strasse"]); $ort = trim($_POST["ort"]); $land = trim(ucwords($_POST["land"])); $telefon = trim($_POST["telefon"]); $fax = trim($_POST["fax"]); $email = trim(strtolower($_POST["email"])); // Fehler if (empty($name)) $errors[]="name"; if (!eregi("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+([a-zA-Z]{2,4})$",$email)) $errors[]="email"; if (empty($nachricht)) $errors[]="nachricht"; if (strlen($nachricht)<10) $errors[]="nlaenge"; if (count($errors)==0){ $email_empfaenger = "info@evox-solutions.com"; $from="From: info@evox-solutions.com Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit "; $message=" $datum Betreff: $betreff Mitteilung: $nachricht Name: $name Vorname: $vorname Firma: $firma Strasse: $strasse PLZ/Ort: $ort Telefon: $telefon Fax: $fax eMail: $email "; $message = wordwrap($message,74); mail("$email_empfaenger","EVOX WEBSITE Kontaktformular",$message,$from); $success=true; } // if !error } // if action ?>