$sendTo = "info@eislaufschule.at";
$action = "showForm";
if ($_REQUEST["action"]) { $action = $_REQUEST["action"]; }
$name = ""; if ($_REQUEST["name"]) { $name = $_REQUEST["name"]; }
$email = ""; if ($_REQUEST["email"]) { $email = $_REQUEST["email"]; }
$subject = ""; if ($_REQUEST["subject"]) { $subject = $_REQUEST["subject"]; }
$text = ""; if ($_REQUEST["text"]) { $text = $_REQUEST["text"]; }
$errorFound = false;
if ($action == "submit") {
if ($name == "" || $email == "" || $subject == "" || $text == "") {
$action = "showForm";
$errorFound = true;
$errorString = "Sie haben nicht alle benötigten Felder ausgefüllt. Bitte füllen Sie alle Felder korrekt und vollständig aus.";
}
else {
$sendFrom = $email;
$message = "";
ini_set("sendmail_from",$sendFrom);
$headers ="From:" . $sendFrom . "\r\n";
$headers .= "To:" . $sendTo . "\r\n";
$headers .= "Subject:$subject\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$body = "$subject
\n";
$body .= "