Since he's using CGI.pm, it would be a better idea to do:

print $q->header();

Regards,
Eric

-----Original Message-----
From: Ragan, Steve [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 13. November 2001 15:53
To: 'Boex,Matthew W.'; HTML-Template mailing list
Subject: RE: [htmltmpl] dumb template/apache question


> should i print the content type in my script as
> opposed to being in the template?

Yes.

It's the responsibility of the CGI to respond with a Content-type header, 
two newlines followed by the content, in this case an HTML page.

print "Content-type: text/html\n\n";

before the print of the template->output() should do it.


Steve Ragan 
Sr. Internet Developer
Harris Internet Services
2500 Westchester Ave.
Purchase, NY 10577
914-641-3948
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to