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:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
|
<html>
<head><link rel="stylesheet" href="http://zsavenue.square7.ch/style.css">
<title>Formular</title>
</head>
<body>
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$hofname = $_POST['hofname'];
$hofaddy = $_POST['hofaddy'];
$stute = $_POST['stute'];
$stutenlink = $_POST['stutenlink'];
$hengst = $_POST['hengst'];
$fohlenm = $_POST['fohlenm'];
$fohlenw = $_POST['fohlenw'];
$sonstiges = $_POST['sonstiges'];
if ( $name == "" OR $email == "" OR $hofname == "" OR $hofaddy == "" OR $stute == "" OR $stutenlink == "" OR $fohlenm == "" OR $fohlenw == "" )
{
echo "Leider hast du das Formular nicht komplett ausgefüllt. Deshalb fehlen Angabe, die wichtig sind. Bitte gehe zurück und fülle alle Felder aus.";
}
else
{
$text = "Name: $name
E-Mail: $email
Hofname: $hofname
Hofaddy: $hofaddy
Stute: $stute
Stutenlink: $stutenlink
Hengst: $hengst
Fohlenname (männlich): $fohlenm
Fohlenname (weiblich): $fohlenw
Sonstiges: $sonstiges";
mail("dsavenue@web.de","Deckanfrage",$text,"From $name <$email>");
echo "Deine E-Mail wurde erfolgreich verschickt.";
}
?>
</body>
</html> |