gube has asked for the wisdom of the Perl Monks concerning the following question:

Dear monks,

Where can I find header and footer includes for navigation. I know I have seen this countless times, I can't get the exact code. Can anyone share your code with me.

Thanks in advance

  • Comment on How to include header and footer in CGI file ?

Replies are listed 'Best First'.
Re: How to include header and footer in CGI file ?
by davidrw (Prior) on Jun 18, 2005 at 01:26 UTC
    Hmm.. that question is phrased almost exactly the same as this one ... They too didn't know exactly what the question meant .. Can you share your attempt or explain further what kind of include s you need, such as breadcrumbs or just static html snippets or dynamic html (e.g. has user's name)?
Re: How to include header and footer in CGI file ?
by gube (Parson) on Jun 18, 2005 at 01:41 UTC

    Hi davidrw

    Actually i have done more than 10 cgi files for my email_solution project. i have to embedded all the cgi file in one html file. In sites, we may see that side header if we click it goes to the link. But, the Html file stands same through out site. But, the link goes to the exact cgi file. so, for that i want how to include header and footer the html file with all cgi files.

      Do you mean:

      use CGI; use strict; # ... some code open(FILE,'header.htm') and print <FILE>; # ... main program open(FILE,'footer.htm') and print <FILE>; # ... done
Re: How to include header and footer in CGI file ?
by nedals (Deacon) on Jun 18, 2005 at 19:45 UTC