Danke, dass ihr mich unterstützt.
Es hat sich etwas bewegt.
Nur jetzt kommt trotz ausgefüllter Pflichtfelder (2 Stück) "Pflichtfelder ausfüllen".
http://www.angekommen-in-side.de/seiten/kontakt.html
<?php
$fmtnotok= implode("", file("notok.htt"));
$fmtResponse= implode("", file("ok.htt"));
$fmtMail= implode("", file("mail.htt"));
if (empty($HTTP_POST_VARS["name"])) {
echo $fmtnotok;
} else {
if (empty($HTTP_POST_VARS["email"])) {
echo $fmtnotok;
} else {
foreach($HTTP_POST_VARS as $key=> $val) {
$fmtResponse= str_replace("<$key>", $val, $fmtResponse);
$fmtMail= str_replace("<$key>", $val, $fmtMail);
}
if ($HTTP_POST_VARS["access"] == "prinzing") {
mail($HTTP_POST_VARS["recipient"], $HTTP_POST_VARS["subject"], $fmtMail);
}
echo $fmtResponse;
}
}
?>