| |
You are here: Experts > Computing/Technology > Perl/PHP > Perl & CGI > cgi html problem
Expert: Marty Landman - 7/10/2009
Question #!C:activeperl/perl/bin/perl
print <<EndOfHTML;
content-type:text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h1> hello wor</h1>
</BODY>
</HTML>
EndOfHTML
exit(0);
Answer Try having 2 carriage returns after your first line ie.
content-type:text/html
<!DOCTYPE html PUBLIC "-//W3C//DT etc..
instead of
content-type:text/html
<!DOCTYPE html PUBLIC "-//W3C//DT etc..
--
Marty Landman, Face 2 Interface Inc.
Free Database Search App: http://face2interface.com/Products/FormATable.shtml
Add to this Answer Ask a Question
|
|
|