meerdere pagina's

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
harr3
Berichten: 381
Lid geworden op: 11 okt 2004, 15:23
Contacteer:

meerdere pagina's

Bericht door harr3 » 09 mar 2006, 18:25

Ik zou graag een mod willen voor meerdere paginas op 1 .php ik heb wel een code met get url maar dat werkt niet als ik dat erin doe :S

Code: Selecteer alles

<? if (isset($_GET['act'])) $PAGE = $_GET['act']; # You can change the value between the brackets to change the index.php?xxx #

else $PAGE = 'home';  # When no page is being asked for, it will default to home. See below!

switch ($PAGE) {
//1- index
case 'home':   # value to call , index.php?xxx=home
include ('home.php'); # path to file
break;

//2-about
case 'about':  # value to call , index.php?xxx=about
include ('/about/about.htm');  # path to file
break;

default:
echo "<p align=center>Error 404! the page you request doesn't exist or as been temporarily inaccessible </p>"; # Page request not found
break;
} ?>
ik kan dit wel in een nieuwe bestand doen. en aanpassen maar ik kan het niet in index.php doen.. hoe moet dit.. of is er een mod voor?

Gesloten