If you're doing it with CGI, you might want to consider either SSI includes or Iframes. I tend to output my pages from a format, so I'll just leave those examples.

For SSI:

<!--#include virtual=@<<<<<<<<<<<<<<<<--> $header

With Iframes:

<iframe src="@<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" $body width="300" height="300" marginwidth="5" marginheight="5" scrolling="no" hspace="10" frameborder="0"></iframe>

Yeah, I know it's not the most elegant backend solution, but it works well. I use this for headers and navigation and it works well. Note that in the MS world, you will have to name the file .stm, .asp, or .shtml for it to get parsed properly. (With SSI includes)

My system works like this:

An example of how I use Iframes are for our departmental section fronts. The normal section front is static, and information is brought into an Iframe. This means that people can update event information without needing to go in to these other HTML files.

I've explained this poorly. If this sounds like something you'd like to try, e-mail me and I'll be happy to type it in English..... :)


In reply to Re: Global includes in cgi's by HamNRye
in thread Global includes in cgi's by L8on

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.