forcer
OSNN Senior Addict
- Joined
- 18 Oct 2002
- Messages
- 413
PHP:
<?php
if (!$page) {
include 'home.php';
} elseif (file_exists($page.".php")) {
switch ($page) {
case 'home':
include 'home.php'; break;
case 'about':
include 'about.php'; break;
case 'profiles':
include 'profiles.php'; break;
case 'audio':
include 'audio.php'; break;
case 'photos':
include 'photos.php'; break;
case 'videos':
include 'videos.php'; break;
case 'choons':
include 'choons.php'; break;
case 'guestbook':
include 'guestbook.php'; break;
case 'links':
include 'links.php'; break;
case 'xtra':
include 'xtra.php'; break;
case 'contact':
include 'contact.php'; break;
default:
include '404.php';
}
} else {
include '404.php';
}
switch ($u) {
case 'reflex':
include 'profiles/reflex.php'; break;
case 'scottyg':
include 'profiles/scottyg.php'; break;
}
?>
this is the code i use for my case select... only problem is if i go to the page...
index.php?page=profiles&u=scottyg
it will display profiles page and the scottyg page... but i just want it to display the scotty g page...
how can i fix this?