Results 1 to 4 of 4

Thread: Headers and footers?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2004
    Location
    Maryland
    Posts
    24

    Default Headers and footers?

    I was wondering if there was any way to set up universal headers and footers throughout one's website. At the moment, I have my site set up to be navigatable through a static table located on the lefthand side of the screen, but it becomes a hassle to have to go back through and add a link onto every page whenever I add a new page of content.

    I was wondering if there was a way other then using frames that would allow me to set up a header and footer so that I do not need to re-type the code with every new page, but instead link back to a document containing the header. Do I need PHP or MySQL? I have been told that I could do this in PERL, but I don't know how to program PERL, and I do not think that bizhat supports it. Please help!

  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    You can do it with PHP or SSI

    In PHP use

    <?php include("./header.html"); ?>


    <?php include("./footer.html"); ?>
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  3. #3
    Join Date
    Sep 2004
    Location
    Maryland, USA
    Posts
    332

    Default

    unless you are good at php (which I am not :cry: ) I suggest keeping with the frames. Other than that, if you are good at php by all means, use the code example that Nokia gave. :o

  4. #4
    Join Date
    Oct 2004
    Location
    Maryland
    Posts
    24

    Default

    Thanks for the help!

    I despise using frames, so I'll probably stick with the PHP for now. I'll look into coding PHP and whatnot in a bit, when I find the time. Thanks again!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •