Problemfall:
http://tippex.ti.ohost.de/index.php
Seiten, wie zb. "impressum" funktionieren einwandfrei, andere, wie zb. Gästebuch oder die Galerie (abgesehen von der Fehlermeldung) wiederum nicht. Wieso?
Code der impressum.php:
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Impressum - Dr-Turtle</title>
<meta name="description" content="Private Website von Dirk Grope (Dr-Turtle). Inhalte: SL R129, Porsche 924, Yamaha XS 400 und mehr.">
<meta name="author" content="Dirk Grope">
<meta name="keywords" content="Dirk Grope, SL, R129, Porsche, 944, Yamaha, XS400">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="robots" content="index,follow">
<meta name="language" content="de">
<link rel="stylesheet" type="text/css" media="screen, projection" href="stylesheet.css">
<link rel="shortcut icon" href="favicon.ico">
</head>
<div id="border">
<div id="header">[img]./images/header.gif[/img]</div>
<div id="border2">
<div id="navi"><?php include 'navi.php'; ?></div>
<div style="overflow:auto" id="content"><p style="margin: 10px;">
BLABLABLA (inhalt)
</p></div>
</div>
<div id="footer"><center><?php include 'footer.php'; ?></center></div>
</div>
</html>
Alles anzeigen
Code der Guestbook.php
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Gästebuch- Dr-Turtle</title>
<meta name="description" content="Private Website von Dirk Grope (Dr-Turtle). Inhalte: SL R129, Porsche 924, Yamaha XS 400 und mehr.">
<meta name="author" content="Dirk Grope">
<meta name="keywords" content="Dirk Grope, SL, R129, Porsche, 944, Yamaha, XS400">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="robots" content="index,follow">
<meta name="language" content="de">
<link rel="stylesheet" type="text/css" media="screen, projection" href="stylesheet.css">
<link rel="shortcut icon" href="favicon.ico">
</head>
<div id="border">
<div id="header">[img]./images/header.gif[/img]</div>
<div id="border2">
<div id="navi"><?php include 'navi.php'; ?></div>
<div style="overflow:auto" id="content"><p style="margin: 10px;">
<div style="margin-top:5px;overflow:auto" align="center" id="gbook">
[b]Ins Gästebuch eintragen:[/b]
<form action="gbook.php" method="post" name="eingabe">
Name:
<input type="text" name="name" size="47">
eMail:
<input type="text" name="email" size="47">
Website:
<input type="text" name="url" value="http://" size="47">
Eintrag:
<textarea name="gbeintrag" rows="20" cols="40"></textarea>
<input type="submit" value="Eintragen" name="absenden"> <input type="reset" value="Reset">
</form>
<?php
if(isset($absenden)){
$dateiinhalt = file_get_contents('gbeintraege.txt');
$datei=fopen ("gbeintraege.txt","w+");
$eintrag = stripslashes($eintrag);
$daten="<hr>[b]Name:[/b] $name
[b]Email:[/b] [url='mailto:$email']$email[/url]
[b]Website:[/b] [url='$url']$url[/url]
[b]Eintrag:[/b] $gbeintrag
\n\n".$dateiinhalt;
fwrite ($datei,$daten);
fclose ($datei);}
if(file_exists("gbeintraege.txt")){
readfile("gbeintraege.txt");
}
else {
echo ("Momentan sind keine Einträge im Gästebuch vorhanden.");
}
?>
</p></div>
</div>
<div id="footer"><center><?php include 'footer.php'; ?></center></div>
</div>
</html>
Alles anzeigen
Betroffene stellen sind jeweils Zeile 19 (<div style="overflow:auto" )
Liegts daran, dass in der Galerie und im Gbook weitere Divs vorkommen, im Impressum nicht?
LG