Re: first steps with mod_perl
[email protected] (Gunnar Hjalmarsson)
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
Marek wrote: > First question: this cgi script inserts an strange DOC-Type, from > which I have never heard off: > > <!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" > "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> > > May I force mod_perl to insert an other doc-type? For example: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> What has mod_perl to do with it? Rather than trying to figure out how to make CGI.pm do it, why don't you skip the start_html() function and print directly the HTML version info you like. > Or is this probably the configuration on the server, No. > I am trying to produce valid html. ... Under xhtml-sctrict should be > inserted: checked="checked"! How to achieve this? Other than printing the checkbox manually, I don't know. -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl