Chris Cole wrote:
> On Mon, 08 Nov 2004 06:55:04 +0000, John Bokma wrote:
[ CGI.pm uses XHTML as default ]
> So what? XHTML is a perfectly valid way of creating web pages (CGI or
> otherwise). I have no problems with firefox displaying perl CGI using
> the default XHTML output.
XHTML is a joke. Also, quite some hosting providers don't send the right
headers, and hence can confuse browsers.
If you don't need XHTML (you don't) or don't understand it, don't use
it.
>> my $cgi = new CGI;
>> print $cgi->header( 'text/html' );
>
> Neither of these are necessary... The problem is due to something
> else.
Probably not sending out correct headers to Firefox gets confused. XHTML
is black magic, don't use it, your site can do without it perfectly.
>> I recommend calling the thingy $cgi instead of $query, printing html
>> to a query sounds odd to me.
>
> It may sound odd to you, but makes sense to me. CGI is often a DB
> front-end so a cgi query *to the db* is perfectly reasonable in this
> case.
Ah, yeah, and how does for example the header method relate to a query?
To me, $cgi makes it clear what I am doing, it's CGI.
CGI.pm is IMNSHO too much in one module anyway.
--
John Small Perl scripts:
http://johnbokma.com/perl/
Perl programmer available:
http://castleamber.com/
Happy Customers:
http://castleamber.com/testimonials.html