Re: Need Help with PHP menu
Menu page code - page html - start of page
<? function ppmenu() { ?>
End of page
<?
}
?>
Page code in html box
<?
$file_to_include = $_SERVER['DOCUMENT_ROOT']."/ppmenu.php";
include($file_to_include);
ppmenu();
?>
Please note that I DID NOT include the folder at the end.........
The menu page is in my public directory
and the page is in another folder.
If you code correctly, you will get the correct result.
The above has been run and tested OK
Menu page code - page html - start of page
<? function ppmenu() { ?>
End of page
<?
}
?>
Page code in html box
<?
$file_to_include = $_SERVER['DOCUMENT_ROOT']."/ppmenu.php";
include($file_to_include);
ppmenu();
?>
Please note that I DID NOT include the folder at the end.........
The menu page is in my public directory
and the page is in another folder.
If you code correctly, you will get the correct result.
The above has been run and tested OK
Comment