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:
|
<?php
include('db.php');
$Name = $_POST['Name'];
$Mail = $_POST['Mail'];
$Hof = $_POST['Hof'];
$Addy = $_POST['Addy'];
$Pferd = $_POST['Pferd'];
$Link = $_POST['Link'];
$Pruefung = $_POST['Pruefung'];
if( ($Name=='') OR ($Mail=='') OR ($Hof=='') OR ($Addy=='') OR ($Pferd=='') OR ($Link=='') ) {
echo "<b>Error</b>
Bitte fülle alle Felder aus!<br><br>
Bitte <a href="javascript:%20history.back(-2)" target="_self">Zurück</a>";
} else {
$eintrag = "INSERT INTO `eroeffnung` ( `Name` , `Mail` , `Hof` , `Addy` , `Pferd` , `Link` , `Pruefung` )
VALUES ('$Name', '$Mail', '$Hof', '$Addy', '$Pferd', '$Link', '$Pruefung')";
$eintragen = mysql_query($eintrag);
if($eintragen==true) {
echo "<b>Dein Eintrag war erfolgreich</b>
Der Eintrag ist nun in die Tabelle eingetragen.";
} else {
echo "Fehler!";
include('meldung_eroeffnung.php');
}
}
?> |