tittli
Erfahrenes Mitglied
Hallo
Habe mal versucht, ein Layout mit Tabellen anstatt mit Frames zu erstellen. Hier mein Code:
Wenn ich die Seite starte, wird auch die home.html angezeigt. Klicke ich aber die Links an, kommt folgendes:
Was stimmt bei meinem Code nicht?
danke und gruss
Habe mal versucht, ein Layout mit Tabellen anstatt mit Frames zu erstellen. Hier mein Code:
PHP:
<html>
<head>
<title>Layout mit Tabellen und PHP (Test)</title>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#afafaf">
<colgroup>
<col width="200">
<col>
</colgroup>
<tr>
<td colspan="2">
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td>
<h1 style="color:#FFFFFF">Willkommen auf der Testseite eines Layouts mit PHP</h1>
</td>
</tr>
</table>
</td>
</tr><tr>
<td valign="top" width="200">
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td>
<h3 style="color:#FFFFFF">Navigation</h3>
<p><a href="index.php?action=home"><b>Home</b></a><br>
<a href="index.php?action=news"><b>News</b></a><br>
<a href="index.php?action=gb"><b>Gästebuch</b></a><br>
<a href="index.php?action=links"><b>Links</b></a></p>
</td>
</tr>
</table>
</td>
<td valign="top" bgcolor="#ffffff">
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td>
<?php
switch($action)
{
case "home": include("home.html"); break;
case "news": include("news.html"); break;
case "gb": include("gb.html"); break;
case "links": include("links.html"); break;
default: include("home.html"); break;
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Wenn ich die Seite starte, wird auch die home.html angezeigt. Klicke ich aber die Links an, kommt folgendes:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, meine@email.adresse and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Was stimmt bei meinem Code nicht?
danke und gruss