simonmlewis wrote:Ok I have to say I am more than just a little confused now.
That method of doing the GetPage, was something i learnt years ago.
They altered part of the function, but I don't think it's been changed since.
And as you say, the HTACCESS does go to the page, so what *should* my function be saying?? Or is it the _REQUEST should be _GET instead, in the pre-check ISSET query?
I didn't say there was anything wrong with that method. What I said was that your URL key-value pairs are "page=home&image=home" (any reason you need 2 variables with the same value?), which means that your $_GET array will look like this:
$_GET['page'] will have the value 'home'
$_GET['image'] will have the value 'home'
But the code you showed in your original post was looking for a non-existent array element, $_GET['menu'], which is what created the problem.
I would certainly use $_GET rather than $_REQUEST. As I explained earlier, $_REQUEST contains ALL the values, including the $_GET values, so it will work, but it muddies up your code so that you can't tell what you are looking for, and if there SHOULD be a $_GET index of, say, 'page',
AND a $_POST or $_COOKIE index with the same name, you can't be sure which one you're accessing. So, Yes, use $_GET.
Does that clarify your confusion?