CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Zhris] Need to change browser's title for one page: Edit Log



sunrise11
Novice

Apr 15, 2011, 3:49 PM


Views: 5637
Re: [Zhris] Need to change browser's title for one page

Okay, I'll give the HTML Template another try.

For clarification, should this go within the Perl script and not a separate HTML doc:


Code
<html>  
<head>
<title><TMPL_VAR NAME=TITLE></title>
</head>
<body>


Before or beneath?


Code
use HTML::Template;  

my $template = HTML::Template->new(filename => 'Header.html');
$template->param(TITLE => 'This is the page title');
print "Content-Type: text/html\n\n", $template->output;


Thanks for your patience.


(This post was edited by sunrise11 on Apr 15, 2011, 3:50 PM)


Edit Log:
Post edited by sunrise11 (Novice) on Apr 15, 2011, 3:50 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives