I am still having a problem with my header/footer. It is now included with each template. The problem I am having is with the footer. For some reason it is printing the header at the top and the header AND the footer at the bottom. I have no idea why it is doing it. It doesn't do this on any other page except Links 2.0 templates, so it would have to be something with the routines, right? Here they are:
sub header {
# ---------------------------------------------------------
# This routine includes my header file
my $header = "/home/jdr7181/www/header.txt";
open(HEADER, "<$header") || &cgierr("Couldn't open $header : $!");
while (<HEADER>) {
$output .= $_;
}
close(HEADER);
return $output;
}
sub footer {
# -------------------------------------------------------
# This routine includes my footer file
my $footer = "/home/jdr7181/www/footer.txt";
open(FOOTER, "<$footer") || &cgierr("Couldn't open $footer : $!");
while (<FOOTER>) {
$output .= $_;
}
close(FOOTER);
return $output;
}
This was taken straight from these discussion groups. What am I overlooking? What else could it be?
Please help me with this.
Jack
Administrator
SoapVoice.com!
sub header {
# ---------------------------------------------------------
# This routine includes my header file
my $header = "/home/jdr7181/www/header.txt";
open(HEADER, "<$header") || &cgierr("Couldn't open $header : $!");
while (<HEADER>) {
$output .= $_;
}
close(HEADER);
return $output;
}
sub footer {
# -------------------------------------------------------
# This routine includes my footer file
my $footer = "/home/jdr7181/www/footer.txt";
open(FOOTER, "<$footer") || &cgierr("Couldn't open $footer : $!");
while (<FOOTER>) {
$output .= $_;
}
close(FOOTER);
return $output;
}
This was taken straight from these discussion groups. What am I overlooking? What else could it be?
Please help me with this.
Jack
Administrator
SoapVoice.com!