Thanks to all for there tips and hints, i found that it was a small problem - a misplaced /. BUT your suggestions were much appreciated....
What i have is a Submit button (Main) that points to Main.php which i want to go to when the button is pressed.
I use the following
if (isset($_POST['MainPage'])) {
header("Location: Main.php");
exit;
}
BUT on the pages accessed with a variable in the URL this wasn't working due to a / in the URL before the variable.
-SEE EXAMPLE
EXAMPLE:
IF URL IS [url]http://www.your_domain/somepage.php/?variable=1; [/url]
AND YOU PRESS MAIN BUTTON you end up with NEW URL = [url]http://www.your_domain/somepage.php/Main.php[/url]
BUT IF THE URL IS [url]http://www.your_domain/somepage.php?variable=1;[/url]
-i.e. same URL without the / before the ?variable=1
AND YOU PRESS MAIN BUTTON you end up with NEW URL = [url]http://www.your_domain/Main.php[/url]