ERLEDIGT
NEIN
NEIN
ANTWORTEN
2
2
ZUGRIFFE
316
316
EMPFEHLEN
-
Hallo,
Ich habe folgendes problem, ich hatte eine Homepage mit folgenden Links
<ul class="sidemenu">
<li><a href="index.php?site=home">News</a></li>
<li><a href="index.php?site=info">Infos</a></li>
<li><a href="index.php?site=flash">Flash Games</a></li>
<li><a href="index.php?site=forum">Forum</a></li>
<li><a href="index.php?site=buch">Gästebuch</a></li>
</ul>
und dazu den code
switch($HTTP_GET_VARS["&site"])
{
case "home": include"home.php";break;
case "flash": include "flash.php";break;
case "buch": include"guestb.php";break;
case "videos": include"videos.php";break;
case "naruto": include"naruto.php";break;
case "aboutme": include"about.php";break;
case "forum": include"forum.php";break;
default: include"home.php";break;
}
es hat auch funktionier nur mit php5 nun nicht mehr vielleicht kennt hier ja einer eine Lösung dafür. Ich danke schonmal im vorraus.
-
03.06.07 16:12 #2
Bitte benute die Tags, wenn du Code posten möchtest.
So sollte es funktionieren.PHP-Code:switch($_GET['site'])
{
case "home": include"home.php";break;
case "flash": include "flash.php";break;
case "buch": include"guestb.php";break;
case "videos": include"videos.php";break;
case "naruto": include"naruto.php";break;
case "aboutme": include"about.php";break;
case "forum": include"forum.php";break;
default: include"home.php";break;
}
KIDS Kinderbetreuungsdienst
Xing
"When you play the game of thrones, you win or you die. There is no middle ground."
by Cersei Lannister in "A Game Of Thrones"
-
funktioniert wieder super danke
Ähnliche Themen
-
PHP4/PHP5 Include Problem
Von Jantz im Forum Hosting & WebserverAntworten: 0Letzter Beitrag: 15.06.08, 20:12 -
Probleme mit PHP5 unter gentoo 2.6.16
Von mkoeni1 im Forum Linux & UnixAntworten: 1Letzter Beitrag: 21.12.07, 14:47 -
PHP5 - URL include() Fehler
Von xcomse im Forum PHPAntworten: 6Letzter Beitrag: 20.02.06, 06:58 -
Probleme mit PHP5
Von xloouch im Forum PHPAntworten: 4Letzter Beitrag: 24.03.05, 14:21 -
Probleme mit SOAP und PHP5
Von yves030 im Forum PHPAntworten: 1Letzter Beitrag: 14.03.05, 13:55





Zitieren

Login






[PHP] [Codeschnipsel] ImageColor aus HTML-Farbcodierung erstellen