tutorials.de Buch-Aktion 02/2012
ERLEDIGT
NEIN
ANTWORTEN
2
ZUGRIFFE
316
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    Greymore Greymore ist offline Rookie
    Registriert seit
    Mar 2007
    Beiträge
    8
    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&auml;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.
     

  2. #2
    Avatar von Flex
    Flex Flex ist offline (aka Felix Jacobi)
    tutorials.de Moderator
    Registriert seit
    Nov 2001
    Ort
    Wuppertal
    Beiträge
    5.295
    Blog-Einträge
    65
    Bitte benute die Tags, wenn du Code posten möchtest.

    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;

    So sollte es funktionieren.
     
    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"

  3. #3
    Greymore Greymore ist offline Rookie
    Registriert seit
    Mar 2007
    Beiträge
    8
    funktioniert wieder super danke
     

Ähnliche Themen

  1. PHP4/PHP5 Include Problem
    Von Jantz im Forum Hosting & Webserver
    Antworten: 0
    Letzter Beitrag: 15.06.08, 20:12
  2. Probleme mit PHP5 unter gentoo 2.6.16
    Von mkoeni1 im Forum Linux & Unix
    Antworten: 1
    Letzter Beitrag: 21.12.07, 14:47
  3. PHP5 - URL include() Fehler
    Von xcomse im Forum PHP
    Antworten: 6
    Letzter Beitrag: 20.02.06, 06:58
  4. Probleme mit PHP5
    Von xloouch im Forum PHP
    Antworten: 4
    Letzter Beitrag: 24.03.05, 14:21
  5. Probleme mit SOAP und PHP5
    Von yves030 im Forum PHP
    Antworten: 1
    Letzter Beitrag: 14.03.05, 13:55