View Full Version : Navingation Menu

08-06-2006, 08:09 AM

I am currently building a website that has about 50+ pages.
The problem is it has a members section which i am using www.omni-secure.com cause it has all the features i want and just protects the pages and is not a CMS.
Anyway the problem is i need a basic Navigation Menu for these 50+ pages and the links on the menu will most likely change once a week or so. And im not going to open 50+ pages and edit the menu on each page.
So i need a PHP or sometype of program that will allow me to login to a program and simply change the links and the look of the menu and save it and it changes it on all the pages. I dont want the pages to run through this program like a CMS. I just need like a php program that i add a code to my exsiting HTML or PHP pages and it displays it on that page, if you know what i mean hehe
I have searched the net but i have not found any programs that can do this.

Any help would be appriciated.


08-06-2006, 11:17 AM
You can use PHP includes like so...

On each page where you want the menu to be, add in -

<? include("navigation.txt"); ?>

Where navigation.txt is the file with the code for your menu. Then when you want to edit the menu for every page you just edit that one file. :)