in reply to CGI.pm checkbox problem?
values is looking for a reference:
should be:print $q->checkbox_group ( -name=>'predefined', -values=>@predefined, );
print $q->checkbox_group ( -name=>'predefined', -values=> \@predefined, );
I have never seen CGI.pm end every form field with />
CGI.pm is xhtml compliant. Here's the header:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
The <code>/><code> is applied to any tags that don't have corresponding closing tags.
HTH,
Charles K. Clarkson
Clarkson Energy Homes, Inc.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: CGI.pm being funny?
by xtype (Deacon) on Feb 06, 2002 at 04:09 UTC | |
by rchiav (Deacon) on Feb 06, 2002 at 05:52 UTC |
In Section
Seekers of Perl Wisdom