I have this code:
<?php
if ($_GET['code'] == "some_code"){
include("./xxx/index.php");
}
else {
include("./index.php");
}
?>
I want the first include statement to just load into the page, not as an include. If it loads as an include it stuffs up my nav system - I have a series of these in subfolders, hence it should just load, not be 'included'.
I've searched high and low, it appears that this is either too simple or too hard to be documented anywhere. Can someone shed some light for me please?