ich habe mal wieder ein kleines Anliegen.

Es soll Anhand der Adresszeile auch ersichtlich sein, welches Menü und welche Seite geöffnet ist. Das habe ich so gelöst:
Indexseite = index.php
Menü 1 & Indexseite = index.php?list=1
Menü 1 & andere 1. Link daraus = index.php?list=1&path=link1
Menü 1 & andere 2. Link daraus = index.php?list=1&path=link2
Menü 2 & Indexseite = index.php?list=2
Menü 2 & andere 1. Link daraus = index.php?list=2&path=link1
...
Der Code in der index.php dafür sieht so aus:
Code: Alles auswählen
if ($_GET["list"] == "1") include("index_1.php");
if ($_GET["list"] == "1" && $_GET["path"] == "link1") include("index_1_seite_1.php");
if ($_GET["list"] == "1" && $_GET["path"] == "link2") include("index_1_seite_2.php");
if ($_GET["list"] == "2") include("index_2.php");
if ($_GET["list"] == "2" && $_GET["path"] == "link1") include("index_2_seite_1.php");
...
if (!isset($_GET["list"]) && !isset($_GET["path"])) include("index.php");
Ich hoffe, ich habe es verständlich geschrieben und ihr könnt mir auch helfen.
