At 10:37 PM 6/23/02 -0400, Shawn Bower wrote:
>I'm trying to use the HTML::Template package, I got it all set up with a
>template web page and I have set up the parameters in my perl script and
>it runs fine when I run it from the command line but when I load it
>using my browser the variable don't get filled in, the tmpl tags are
>gone but my vaules don't get filled in. Any help would be much
>appreciated :-)
>
>Code:
><------------------------------>
>my $template = HTML::Template->new(filename=>'weather.html');
>$template->param('CurrTime', $currTime);
>$template->param('CurrTemp', $currTemp);
>$template->param('HiTemp', $hiTemp);
>$template->param('LoTemp', $loTemp);
>$template->param('ImgLoc', $imgLoc);
>$template->param('CurrCon', $currCon);
>
>#Display template page
>print "Content-Type: text/html\n\n";
>print $template->output;
Either your variables ($currTime and friends) are all undef or '', or
there's something wrong with your HTML. Try a *simple* example (couple
of lines of HTML, one variable).
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]