Include statement

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am trying to use the 'include' statement to include code from another
file.  The syntax that my book gives for it :  <!--#include
file="file.htm"--> does not produce any results.  The code looks like a
comment anyway, so I don't understand how that's supposed to work.  I have
the same menu on every page and just want to code it once and then include
it in each page so I don't have to go through and change every page when I
change something in the menu.  Anyone else have any luck with it?  Thanks!

Re: Include statement

Quoted text here. Click to load it

Have you checked that your server supports includes?


"My theories appal you, my heresies outrage you,
 I never answer letters and you don't like my tie."  - The Doctor

Re: Include statement

RA wrote:

Quoted text here. Click to load it

It is an SSI directive.
Your webserver software must be configured to look for SSI directives on the
page. It will then include the file and send the combined file to the

David Dorward                            /
         Redesign in progress: /
  Microsoft announces IE is dead (so upgrade):

Site Timeline