42 users online (1 members and 41 guests)  


  Results 1 to 2 of 2

Related

  1. Side by side html tables    Forum: HTML Forum
    Replies: 7
  2. General Interests/Left side of page help    Forum: Myspace Forum
    Replies: 3
  3. Replies: 1
  1. #1
    technel
    technel's Avatar
    Guest

    Exclamation Same Header/Side Bar On Every Page

    Hey Guys,

    I was thinking of a new layout that doesn't have iFrames or regular Frames. But I want to have the same header and side bar and stuff on every page without having to edit each page when I need to update the navigation. I know there is frames, and iframes but some browsers don't support these and I want a web site that is supported by almost all browsers (maybe not possible)...anyway, is there a way? Sometimes I see ppl do it with php...but i dunno php or anything...

    Can anyone help me!??! Thanks Guys,

    -Technel

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    They are called includes . you can do it a few ways (including javascript, but that is not seamless and effects the search engines) .

    To do it in php, your page has to end in .php so the server knows to treat it as such. The command itself is very simple -

    PHP Code:
    <? include("included_page.php"); ?>
    on a .asp or .shtml page, you can do it like this -

    Code:
    <!--#include file="included_page.html" -->
    try them out, thye save a lot of work.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread