RiggsFolly
Programmer
Hi,
I am a Perl newbie but an old coder so I hope this is quite simple for you perl pro's.
I am trying to get start_html(.......) to produce more than one http-equiv line in the generated html, but failing dismally.
I would like the following 3 lines:-
The only line that actually makes it to the xhtml is:-
The code I am using is :-
What actually makes it to the xhtml is:-
Also a little wierd is that the one line that does make it to the xhtml get there even if I remove all 3 of the -head=>meta ... lines.
Can somebody put me on the right track please.
Also a recomendation for a good Perl book would be useful as I am not finding the online docs a great teaching aid.
Thanks
I am a Perl newbie but an old coder so I hope this is quite simple for you perl pro's.
I am trying to get start_html(.......) to produce more than one http-equiv line in the generated html, but failing dismally.
I would like the following 3 lines:-
Code:
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en-GB" />
The only line that actually makes it to the xhtml is:-
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
The code I am using is :-
Code:
print $q->header(-charset=>'UTF-8');
print $q->start_html( -title=>'(Pro Coat - Order Entry)',
-encoding=>'utf-8',
-meta=>{ 'keywords'=>'Pro Coat, ProCoat, non slip, non-skid, coating',
'copyright'=>'copyright 2005 PROCOAT',
'authors'=>'SUNVIVA Ltd',
'channel'=>'installers',
'date'=>'20050824',
'description'=>'Pro Coat data entry form, for the production of a printable PROFORMA invoice',
'robots'=>'index follow noarchive'
},
-head=>meta({-http_equiv => 'Content-Language',-content=>'en-GB'}),
-head=>meta({-http-equiv => 'Content-Type', -content => 'text/html', -charset => 'utf-8'}),
-head=>meta({-http-equiv => 'content-style-type', content=>'text/css'}),
-head=>[
Link({-rel=>'stylesheet',-type=>'text/css',-href=>'../css/page.css',-media=>'screen'}),
Link({-rel=>'stylesheet',-type=>'text/css',-href=>'../css/proforma.css',-media=>'screen'})
]
);
What actually makes it to the xhtml is:-
Code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] lang="en-US" xml:lang="en-US">
<head>
<title>(Pro Coat - Order Entry)</title>
<meta name="authors" content="SUNVIVA Ltd" />
<meta name="keywords" content="Pro Coat, ProCoat, non slip, non-skid, coating" />
<meta name="date" content="20050824" />
<meta name="copyright" content="copyright 2005 PROCOAT" />
<meta name="robots" content="index follow noarchive" />
<meta name="channel" content="installers" />
<meta name="description" content="Pro Coat data entry form, for the production of a printable PROFORMA invoice" />
<link type="text/css" media="screen" rel="stylesheet" href="../css/page.css" />
<link type="text/css" media="screen" rel="stylesheet" href="../css/proforma.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
Also a little wierd is that the one line that does make it to the xhtml get there even if I remove all 3 of the -head=>meta ... lines.
Can somebody put me on the right track please.
Also a recomendation for a good Perl book would be useful as I am not finding the online docs a great teaching aid.
Thanks