in reply to Re: CGI.pm, labels, and subsets
in thread CGI.pm, labels, and subsets

Try: my $subset = [ 'display_external_host' ]; In the arguments to checkbox_group, values refers to the values of the VALUE attributes in the HTML, not to the values in the labels hash. The values provided to the checkboxes should be the keys in the labels hash. How would CGI look up the label from the checkbox value otherwise?

Replies are listed 'Best First'.
Re: Re: Re: CGI.pm, labels, and subsets
by geektron (Curate) on Feb 16, 2001 at 08:55 UTC
    thanks to both merlyn and chipmunk. i ALWAYS get the key/value thing backwards w/ the -labels option.

    now i just need a clean way of getting $subset to have the KEYS to the hash. the contents of $subset are returned by another subroutine.