You don't have to limit it to headers and footers, I do the same with every part of my pages except for the main content.
Has become one of my best friends. I also set up a "template" page for when I need to add pages.Code:<div id="(CSS style)"> <?php require ('page.php'); ?> </div>
"CSS Style" is defined in your stylesheet.css (or whatever you name it)
"Page.php" is the name of the page you made, no need for the HTML, HEAD, BODY, etc.. tags etc, just throw in the straight script and this command will tell the browser to throw that code directly in.
It's great for adding pages, adding links (to a link column), change the header, or footer in a multi page site, you only change one page, not all of them.






Reply With Quote




Bookmarks