http://www.perlmonks.org?node_id=143545


in reply to CGI.pm checkbox problem?

values is looking for a reference:

print $q->checkbox_group ( -name=>'predefined', -values=>@predefined, );
should be:
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.