[PHP & MySQL] Kontakt-Formular geht nicht

larouge
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 großes Grinsen

Bitte smile

Liebe Grüße
WuLana
Meinst du nicht eher das das obere formular.html heißt und das unter action_formular.php?
larouge
omg eh wenn ich das jetz falsch gemacht habe großes Grinsen

wieder typisch xD
mom ich guck ma eben

edit
ich habs geändert^^
aber jetz wird trotzdem, wenn ich es abschicken will


Parse error: syntax error, unexpected '=' in /usr/export/www/hosting/lantigo/Turnier/action_formular.php on line 8

angezeigt...
WuLana
versuchs mal das du statt "-" überall "_" verwendest
laut des Fehlercodes was er anzeigt stimmt was mit dem = nicht
Katharina Weber
Ich würde auch sagen, dass diese Bindestriche bei z.b hof-url das Problem sind. Nimm die einfach mal weg und es müsste eigentlich gehen.
Viele Grüße, Katharina
larouge
meinst du überall oder nur bei action_formular.php?

dann probier ich´s mal smile
schonmal danke smile

edit:

es funktioniert smile