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: if ($page == 'tos'){ $include = 'tos.php';} elseif ($page == 'updates'){ $include = 'news_updates.php';} elseif ($page == 'credits'){ $include = 'credits.php'; } 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.
// ?page=yourpage&view=DDDeclan $page = $_GET['page']; echo $page; // would be "yourpage" $view = $_GET['view']; echo $view; // would be "DDDeclan" PHP: Yeah, you can keep adding & to create complex urls. ?page=yourpage&view=DDDeclan&id=6&forum=54