1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
|
<html>
<head>
<title>Formular</title>
</head>
<body>
<?php
$name = ($_POST['name']);
$pferdelink = ($_POST['pferdelink']);
$hofaddy = ($_POST['hofaddy']);
$turnier = ($_POST['turnier']);
$disziplin = ($_POST['disziplin']);
if ( ($name == "") OR ($pferdelink == "") OR ($hofaddy == "") OR ($turnier == "") OR ($disziplin == "") )
{
echo "Du hast nicht alle Angaben gemacht! Gehe zurück und korrigiere dies!";
}
else
{
$text = "Name: $name
Pferdelink: $pferdelink
Hofadresse: $hofaddy
Turnier: $turnier
Disziplin: $disziplin";
mail("ts_silberpfeil@yahoo.de","Turnieranmeldung",$text,"From $name <$email>");
echo "Deine E-Mail wurde erfolgreich verschickt.";
}
?>
</body>
</html> |