Layout mit Tabellen und PHP

tittli

Erfahrenes Mitglied
Hallo

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
 
nein funktioniert mit beiden nicht. Kann mir vielleicht jemand bei meinem Problem helfen? Wäre euch sehr dankbar
gruss
 
Hab dein Script sowohl auf meinem lokalen Server als auch auf meiner HP getestet, beide male lief es ohne Probleme. Ich tippe mal, das problem liegt bei deinem Server, vielleicht versteht der kein PHP? Würde mal bei deinem Hoster nachfragen.


Der Doc!
 
ähm...hallo?...bin vielleicht noch kein php-Freak, aber dass mein Server php versteht weiss ich. Andere php-Dateien kann er auch.
gruss


edit: kann es sein dass mein Server falsch konfiguriert ist?
 
Zuletzt bearbeitet:
Vielleicht solltest du doch nochmal genau gucken, ob register_globals nicht doff "Off" ist ;)
 
Zurück