Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

How to include header and footer in CGI file ?

by gube (Parson)
on Jun 18, 2005 at 01:16 UTC ( [id://467915]=perlquestion: print w/replies, xml ) Need Help??

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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://467915]
Approved by davidrw
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found