Geschrieben von larouge am 31.12.2008 um 15:10:
Kontakt-Formular geht nicht
Hey, ich habe noch nie so ein Formluar selber gemacht.
Wenn ich die seite formular.html jetz aufrufen will, kommt:
Parse error: syntax error, unexpected '=' in /usr/export/www/hosting/lantigo/Turnier/formular.html on line 8
hier ist formular.html
<html>
<head>
<title></title>
<style type="text/css">
table {
font-family:Tahoma;
color:#232f01;
font-size:12}
</style>
<small><font face="Tahoma"><b><center><h4>Eröffnungsturnier</h4></b><br />
<p>Habt ihr euch entschlossen teilzunehmen? Dann schickt bitte dieses Formular ausgefüllt an uns.
</p>
</small></font>
<form action="action_formular.php" method="POST">
<table style= border:" 1px solid" bgcolor="#d8dcb9">
<tr>
<th>Name:</th>
<td><input type="text" name="name"></td>
</tr>
<tr>
<th>E-mail:</th>
<td><input type="text" name="email"></td>
</tr>
<tr>
<th>Hof:</th>
<td><input type="text" name="hof"></td>
</tr>
<tr>
<th>Hof-URL:</th>
<td><input type="text" name="hof-url"></td>
</tr>
<tr>
<th>Pferd:</th>
<td><input type="text" name="pferd"></td>
</tr>
<tr>
<th>Pferd-URL:</th>
<td><input type="text" name="pferd-url"></td>
</tr>
<tr>
<th>Disziplin:</th>
<td><input type="text" name="disziplin"></td>
</tr>
<tr>
<th>Sonstiges:</th>
<td><input type="text" name="sonstiges"></td>
</tr>
<tr>
<th><input type="submit" value="Absenden"></th>
<th><input type="reset" value="Zurücksetzen"></th>
</tr>
</table>
</form>
</body>
</html>
und hier action_formular.php
<html>
<head>
<title></title>
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$hof = $_POST['hof'];
$hof-url = $_POST['hof-url'];
$pferd = $_POST['pferd'];
$pferd-url = $_POST['pferd-url'];
$disziplin = $_POST['disziplin'];
$sonstiges = $_POST['sonstiges'];
if ( ($name == "") OR ($email == "") OR ($hof == "")OR ($hof-url == "") OR ($pferd == "") OR ($pferd-url == "") OR ($disziplin == "") OR ($sonstiges == ""))
{
echo "Du hast nicht alle Felder ausgefüllt! Gehe <a href='java script:back()'>zurück</a> und korrigiere dies!";
}
else
{
$text = "Name: $name
E-Mail: $email
Hof: $hof
Hof-URL: $hof-url
Pferd: $pferd
Pferd-URL: $pferd-url
Disziplin: $disziplin
Sonstiges: $sonstiges
";
mail("lia@golfkatze.de",$betreff,$text,"From $name <$email>");
echo "Deine Nennung wurde erfolgreich abgeschickt.";
}
?>
weiß jemand wieso?
Ist warscheinlich wieder do ein übelster fehler.. naja, war das erste mal
Bitte
Liebe Grüße