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:
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Probeanmeldung</title>
<link rel="stylesheet" href="http://pferdespass.pf.ohost.de/Lavanna/style3.css" type="text/css">
</head>
<body style="background:url('../Grafiken/Gaestebuchhg.png')">
<?php
$name = $_POST['name'];
$schulpferd = $_POST['schulpferd'];
$geburtstag = $_POST['geburtstag'];
$email = $_POST['email'];
if ( ($name == "") OR ($email == "") OR ($schulpferd == "") OR ($gebutstag == "") )
{
echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='javascript:back()'>zurück</a> und korrigiere dies!";
}
else
{
$text = "Name: $name
Schulpferd: $schulpferd
Geburtstag: $geburtstag
Email: $email";
mail("Maxpferd1@web.de",$betreff,$text,"From $name <$email>");
echo "Deine e-Mail wurde erfolgreich abgeschickt.";
}
?>
</body>
</html>
|