Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: first steps...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 9 Topic 1416 of 1496
Post > Topic >>

Re: first steps with mod_perl

by david@[EMAIL PROTECTED] (David Dorward) Oct 9, 2007 at 11:07 AM

On 9 Oct 2007, at 04:04, Marek wrote:
> if I understand well, it is extremely difficult to make CGI.pm produce
> valid html
>
> My problem are the many <p /> tags in the form - and the checked
> instead of checked="checked" in the input-tags. But probably I am not
> yet understanding CGI.pm?

It has been a long while since I tried generating HTML with CGI.pm  
(these days I lean very strongly towards Template-Toolkit), but I'd  
be surprised if it produced <p /> since its either non-Appendix C  
conformant, nonsensical XHTML (a content-less paragraph) or its, in  
HTML, "Start of paragraph followed by a greater than sign" and using  
features marked as badly sup****ted - avoid.

checked rather than checked="checked" is fine in HTML  
(checked="checked" is another of the "avoid this, its badly  
sup****ted" features).

According to the CGI.pm do***entation, it defaults to XHTML (so it  
should be outputting checked="checked") unless you use -dtd to  
specify an HTML 2.0 or 3.2 DTD. (Why not HTML 4.x I've no idea). You  
can also use the -no_xhtml pragma to turn off XHTML generation.

Turning off XHTML generation is generally a good thing: http:// 
www.webdevout.net/articles/beware-of-xhtml

.... but I'll stick to Template-Toolkit

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
 




 9 Posts in Topic:
first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-18 11:46:19 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-09-19 00:39:30 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-22 03:26:05 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-09-23 20:32:19 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-09-30 05:39:09 
Re: first steps with mod_perl
noreply@[EMAIL PROTECTED]  2007-10-06 23:00:21 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-10-08 20:04:40 
Re: first steps with mod_perl
david@[EMAIL PROTECTED]   2007-10-09 11:07:59 
Re: first steps with mod_perl
mstep@[EMAIL PROTECTED]   2007-10-10 08:28:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 10:26:22 CST 2008.