Click to See Complete Forum and Search --> : Menu Bar


kproc
03-07-2006, 08:03 PM
Hi

I have been looking for the best way to create a menu bar on my webpage, I started with buttons, then went to frames, and now its setup using html and formated with CSS


In one of my posts I was told that I could create a seperate file for this and use php if my serve supports it. I have confimed that this is the case.

the perons posted this script. I have no idea how to work this into my page.

My goal is for my menu bar to remain static and be able to add and remove links without having to change every page. Can ccs formating be appied to php script. I assume yes but thought I would ask.




<?php

include("links.php");

?>

welsh
03-07-2006, 08:07 PM
yes, that would work if the page it was on was for example index.php

Sheldon
03-07-2006, 08:12 PM
You need to name all of your files with the .php extension, then change all links to .php rather than .html

then simpley put that code where your want the menu to be displayed, making sure *links.php* is the name of the file you want to include as your menu.

kproc
03-07-2006, 09:03 PM
Hi everyone thankyou for the information. I got it to work. I changed my menu bar and header bar. now I'm going to add a footer