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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting HTML file into HTML page

Status
Not open for further replies.

ishfady

Programmer
Sep 14, 2002
31
GB
Hi

Please can you advice if this is possible.

I have few static HTML pages which have top menu.
eg Home, Stock, Finance etc, This menu is same for all pages.

So I would like to create single file, such as menu.html or other sort, and then add it to all pages.

Any advice please.

many thank

 
You can easily use SSI for this if it is available from your host. Whatever pages you want to add the menu to can be done like this:

<!--#include virtual="menu.html" -->
 
The page calling the SSI will need to be "myPage.shtml" though. So the server knows to process it correctly.

there are alot of threads on this site that deal with SSI's

 
The page calling the SSI will need to be "myPage.shtml" though. So the server knows to process it correctly
yes, most likely that will be the case, depending on your server configuration.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top