Hello,
I'm working on a site and have hit a bit of a problem when it comes to specific pages such as profiles.
I have decided to opt for the commonly used method of ?page=home and then include the home.php file.
Here is an example of how im doing it:
PHP Code:
if ($page == 'tos'){ $include = 'tos.php';} elseif ($page == 'updates'){ $include = 'news_updates.php';} elseif ($page == 'credits'){ $include = 'credits.php'; }
But when it comes to a page that has its own ?= on the end, eg profile.php?view=Declan, I'm stuck on how to get around it.
All help will be appreciated, thanks.
Declan.
|