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:
|
<?php
include('db2.php');
$name = $_POST['name'];
$mail = $_POST['mail'];
$horse = $_POST['horse'];
if( ($name=='') OR ($horse=='') OR ($mail=='') ) {
echo "<b>Error</b><br>
Bitte fülle alle Felder aus!<br><br>
<a href="javascript:%20history.back(-2)" target="_self">Zurück</a>";
} else {
$eintrag = "INSERT INTO `probea` ( `name` , `mail` , `horse` )
VALUES ('', '$name', '$mail', '$horse')";
$eintragen = mysql_query($eintrag);
if($eintragen=='true') {
echo "<b>Eintrag erfolgreich</b><br>
Der Eintrag in die Tabelle war erfolgreich. Heißt soviel wie - Anmeldung erfolgreich (:";
} else {
echo "Fehler! Bitte versuch es noch mal.";
include('probeanmeldung2.php');
}
}
?>
|