in reply to printing checkboxes from a form

@turned_on = param('group_name');
See CGI checkboxes


Replies are listed 'Best First'.
Re^2: printing checkboxes from a form
by tilly (Archbishop) on Apr 10, 2005 at 00:49 UTC
    And the key is that you assign param to an array, not a scalar. If you assign it to a scalar you'll just get the first checkbox in the group that was selected.

    The gory details of context are explained in perlsyn, I also touched on it at Arrays are not lists.