You are seeing this very light version of the page, as you are using an outdated browser!

Onlinetools.org is done in XHTML 1.0 and supports CSS 2.0, please upgrade your browser if you want a better version of this site.

Thank you, please help us developers keep up with the industry rather than patching our code for outdated applications.

open or close right navigation

Flexible navigation with PHP

Advertisement:
 
written by:Christian Heilmann on 26.04.2002
Jump to page: 1  2  3  4  5  or read all on one page
 

The navigation woe

All of you who ever coded a web site for a third party (customer,friends) know the problem: You code all the HTML by hand and after you finished they want some new menu item, a different order or want one deleted "till the next month".

Now you either change all the HTML pages by hand or use search + replace in the whole folder, which is a very handy approach, resulting in complete disaster in 90% of the cases.

A way to spare you this work is to use PHP to generate the navigation. Take a look at this. It is fully generated from a small script. All you need to do is to tweak it for your purposes and name your pages the same way you name the entries in the menu. But let's take one step at a time.

more»
Table of contents:

The navigation woe
How to gain flexibility
The page template.
The nav.php script
Download and known issues

Back to top

Search:

 

Font:

Click to decrease fontsizeClick to increase fontsize

Text-colour:


Background:


sponsored by :

NWU

Help Onlinetools.org

Help onlinetools.org, donate via paypal

Partners

easyPHP

icons

Link to us

copy the code here:


Powered by EasyCMS