Hi, I need to have a header at the top and a menu at the right side on all my pages. I now understand that I can use two ways to include them on every page.
(1)
Making my pages “.SHTML” and using the include statement for the menu and header at the right spots in my pages
<!–#include virtual = “header.htm”–>
and
<!–#include virtual = “menu.htm”–>
(2)
Making my pages “.PHP” and using the require statement for the menu and header at the right spots of in my pages
<?php require(‘header.htm’);?>
and
<?php require(‘menu.htm’);?>
Consider that my server supports both shtml (Server Side Includes) and supports PHP. Also consider that I am good in php programming.
First question:
What has more advantages … having all my pages being .shtml or .php
Second question:
what is the best way to place the menu on the right? should I make all my pages tables and have a colomn at the right side to place the menu in it or there are other ways. Consider that I already have the pages and it will be easier for me to have a way that I can plug in the existing pages even though I want the best way even if it takes more work.
Thanks
Sam