Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header, and left side in one page included on others

Status
Not open for further replies.

Wyldcard9

Programmer
Feb 5, 2004
82
US
I am trying to figure out how to get my header and left side of my pages in one file, and then include that file on multiple different pages.

The problem is some of the links have been changing on me, and having to change a couple hundred pages everytime that happens is getting annoying.

My only other idea is to scale back how many of these pages have these links, but I know it must be possible. I have read links and see they seem to use CSS. I tried to take the HTML code out, and saved it as a file. I then tried to include that in a test page, but the header/left side don't appear.

I know there has to be a way to do this, but I am striking out.

Any help is appreciated.
 
First check that your ISP supports server side includes (SSI). Then make sure that the containing page has a file type of SHTML rather than HTM or HTML

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
there are three main ways of repeating code on several pages:

1) SSI (as johnwm mentioned above)
2) Frames
3) Other, server-based includes (PHP, ColdFusion, etc.)

1 and 3 need some form of server-side scripting language or settings, 2 requires only regular old HTML, but is not an ideal solution due to bookmarking, search engine optimization and so forth.



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
How do I find out if my ISP allows for SSI? I use godaddy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top