Danke, ich werde es mal einbauen. Nun habe ich ein Problem mit nem Skript. Ich wollte nämlich endlich mal mit include arbeiten und habe folgenden body hergestellt.
PHP-Code:
<body bgcolor="#330000" text="#FFFF00"><center>
<?php
switch ($_GET['go']) {
case "anmeldung":
include ("anmeldung.php");
break;
case "login":
include ("login.php");
break;
case "werbung":
include ("werbung.php");
break;
case "char":
include ("char.php");
break;
case "suche":
include ("suche.php");
break;
case "links":
include ("links.php");
break;
case "impressum":
include ("impressum.html");
break;
default:
include ("gruß.html");
?>
<p><h3>Navigation:</h3>
<table border="2" bgcolor="#660000" bordercolor="#000000"><tr>
<td><font color="#FF0000">Startseite</font></td>
<td><a href="index.php?go=anmeldung">Anmeldung</a></td>
<td><a href="index.php?go=login">Login</a></td>
<td><a href="index.php?go=werbung">RPG-Werbung</a></td>
<td><a href="index.php?go=char">Charakter</a></td>
<td><a href="index.php?go=suche.php">Suche</a></td>
<td><a href="index.php?go=links.php">Links</td>
</td>
</table> </p>
<a href="index.php?go=impressum">Impressum</a> | <a href="http://www.worldofgothic.de">World of Gothic</a> | <a href="http://www.worldofplayers.de">World of Players</a>
</center></body>
</html>
Als Fehler wird zeilde 50 angegeben:
Parse error: parse error, unexpected $ in C:\websites\www\RPG\index.php on line 50
</html> ist aber Zeile 49. Es gibt also keien 50...