alex,
i am using star office to create the template, then i go back and add the
template tags. here is a small portion of my template, and below is my cgi
script.
is the header incorrect? should i print the content type in my script as
opposed to being in the template?
thanks,
matt
----------------------------------------------------
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
charset=iso-8859-1">
<TITLE>Welcome to Fosbow.com </TITLE>
<META NAME="GENERATOR" CONTENT="StarOffice 6.0 (Linux)">
<META NAME="CREATED" CONTENT="20011007;19334300">
<META NAME="CHANGEDBY" CONTENT="matt boex">
<META NAME="CHANGED" CONTENT="20011108;14554400">
<STYLE>
<!--
TD P { color: #000000 }
P { color: #000000 }
A:link { color: #000000 }
A:visited { color: #000000 }
-->
</STYLE>
</HEAD>
<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" BGCOLOR="#ffffff">
<P ALIGN=CENTER><FONT FACE="Verdana"><A HREF=""><IMG
SRC="../fosbow-title.jpg" NAME="Graphic1" ALIGN=BOTTOM WIDTH=350 HEIGHT=88
BORDER=0></A>
-------------------------------------------------------
#!/usr/bin/perl -w
use CGI;
use DBI;
use HTML::Template;
use constant RESULTS => 25;
my $q = new CGI;
print_firstpage() if (!$q->param());
print_search_by_listing() if ($q->param("by_listing"));
print_search_by_state() if ($q->param("search_by_state"));
sub print_firstpage {
my $template = HTML::Template->new(filename => 'fi.html' );
print $template->output();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]