Forum Moderators: phranque

Message Too Old, No Replies

Server Side Includes - Setup

         

learn4life

11:02 pm on Mar 23, 2006 (gmt 0)

10+ Year Member



I have 2 SSI files that I use in my webpage. 1 for the top nav and one for the bottom. When these files are created, should they have the doctype, html, head and title in them or will they work fine if they are removed.

When I upload the page and view the source code, the page is displaying 3 heads, body, html, etc

I would like to know the proper way of doing it.

Thanks!

tbear

11:14 pm on Mar 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi learn4life,
No, there is no need to add anything but the code you wish to be inserted in your pages.
And a belated welcome to WebmasterWorld.....

learn4life

11:28 pm on Mar 23, 2006 (gmt 0)

10+ Year Member



Thanks for welcoming me...

One of my SSI file, the navigation include, I have a reference to a .css and .js file so I can't remove the head. Will this be ok or is there something else I should do?

tbear

11:44 pm on Mar 23, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can you not put them in the head of the main page, which is the head of the page your incude will reside?

learn4life

12:01 am on Mar 24, 2006 (gmt 0)

10+ Year Member



DOH! Yes I could, and I did, and it worked and thank you so much!