View Full Version : Sidebar question

26 Nov 2005, 09:20 PM
Hello. I've taken a break from webdesign (2-3 years) I remember most of the
stuff... but anyways... I need help doing something that I know I've done in
the past.

This is not frames (I hate frames!) But there was a way to create an html f
ile with whatever in it. In my case a bunch of links for a sidebar. Then you
just type in a code in all your html files to show this html file. So basic
ly you only have to update one html file and all of your sidebars are update
d.... Hopefully someone knows what I am talking about. I just need a refresh
er on how to do this.

Thanks in advance.

27 Nov 2005, 08:00 AM
Use PHP or ASP to do this.. I'll describe the PHP way as I don't know ASP..
The files that include your menu must have the .php extension, as must the file with the menu in it.
Put your menu in menu.php.
In your page where you want the menu (eg. index.php) put
<? include "menu.php"; ?>