Gästebuch fehler
#1
Hallo ich hab mir ein kleines gästebuch gebastelt aber ich hab einen fehler drin:

Da der Fehler

ausgabe.php datei:

[code=php]

<html>
<head>
<STYLE>
body {
background-color:#f5f9fc; font-family: Tahoma; color:#41729E; font-size:10px; }
a:link, A:visited {
text-decoration: underline; color:#41729E; font-size:10px;}
A:active, A:hover {
text-decoration: no; color:#41729E;}
input {
font-family: Verdana; font-size: 10px; color: #000000; border: 1px solid #000000; background-color: #FFFFFF}
#box {
font-family: Verdana; font-size: 10px; color: #000000; border: 0px solid #000000; background-color: #EFEFEF }
#textarea {
font-family: Verdana; font-size: 10px; color: #000000; border: 1px solid #000000; background-color: #FFFFFF }
</style>
</head>
<body>
<p align="center"><a href="guestbook.php">Eintragen</a></p>
<?php
$gb_daten_dat = "data.gb";

if($sent=="1") {
$name=strip_tags($name);
$mail=strip_tags($mail);
$hp=strip_tags($hp);
$betreff=strip_tags($betreff);
$text=strip_tags($text);
if(!$name)$fehler="Bitte geben sie ihren Namen ein";
if(!$mail)$fehler="Bitte geben sie ihre emailaddy ein";
if(!$betreff)$fehler="Bitte geben sie einen Betreff ein";
if(!$text)$fehler="Bitte geben sie eine Mitteilung ein";
if($fehler)echo "<p align="center"><font>$fehler.</font></p>";
}
if($name && $mail && $betreff && $text && !$fehler) {
$text = stripslashes($text);
$filedat = fopen($gb_daten_dat, "r");
$newfiledat = fread ($filedat, filesize ($gb_daten_dat));
$inhalt=implode("", file($gb_daten_dat));
$text = nl2br($text);
$inhalt="$name~$mail~$hp~$betreff~$text|$newfiledat";
$datei=fopen($gb_daten_dat, "w");
fputs($datei, $inhalt);
fclose($datei);
}
?>

<?php
$eintrag=explode("|", implode("", file($gb_daten_dat)));
for($i="0"; $eintrag[$i]!=""; $i++) {
$element=explode("~",$eintrag[$i]);
?>
<center>
<table bgcolor="#000000" cellpadding="1" cellspacing="1" width="441" align="center" height="127">
<tr bgcolor="#acc6dd">
<td valign="top" height="10" width="86">
<p align="center"><font face="Tahoma" color="#0000FF" size="2">Autor:</td>
<td align="center" valign="top" width="348" height="10">$element[3]</td>
</tr>
<tr bgcolor="#f5f9fc">
<td valign="top" height="127" width="86">$element[0]<a href=mailto:$element[1]><img border="0" src="http://www.klassenhp.brunner-world.de/gb2/email.gif" width="18" height="18"></a>
<p>
<a href=$element[2]>
<img border="0" src="http://www.klassenhp.brunner-world.de/gb2/hp.gif" width="18" height="18"></a>
</td>
<td align="center" valign="top" width="348" height="127">$element[4]</td>

</tr>
</table>
<br>
<br>
</center>
?>
}
?>
</body>
</html>
[/code]

zeile 47 ist </html>, ich weiß das wahrscheinlich irgendwo eine klammer oder ; zuviel ist aber ich finde den nicht ;(

Vll könnt ihr mir ja helfen.

Schon mal Danke im Vorraus


Nachrichten in diesem Thema
Gästebuch fehler - von brunner - 15.03.2003, 20:27
RE: Gästebuch fehler - von SunSonic - 16.03.2003, 00:08
[Kein Betreff] - von brunner - 16.03.2003, 12:56
[Kein Betreff] - von Tobi - 16.03.2003, 14:32
[Kein Betreff] - von brunner - 17.03.2003, 15:31
[Kein Betreff] - von Tobi - 17.03.2003, 21:20
[Kein Betreff] - von brunner - 18.03.2003, 17:33
[Kein Betreff] - von Tobi - 18.03.2003, 19:47
[Kein Betreff] - von brunner - 18.03.2003, 20:12
[Kein Betreff] - von Tobi - 19.03.2003, 20:40
[Kein Betreff] - von brunner - 20.03.2003, 16:10
[Kein Betreff] - von Tobi - 20.03.2003, 21:10
[Kein Betreff] - von pattex - 20.03.2003, 21:12
[Kein Betreff] - von brunner - 21.03.2003, 14:23
[Kein Betreff] - von pattex - 21.03.2003, 21:50

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste