in reply to Multiple form selections in cgi

Uhm... I think you may be overthinking this. All you have to do is give all your checkboxes the same name attribute:

<input type="checkbox" name="year" value="1996" /> <input type="checkbox" name="year" value="1997" /> . . . <input type="checkbox" name="year" value="2005" />
Using CGI, all the checked boxes will be available in an array returned by param. Use something similar to:
my @selected_years = $query->param('year');

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re^2: Multiple form selections in cgi
by punch_card_don (Curate) on Sep 26, 2005 at 19:42 UTC
    Yes! That works perfectly. And exactly the kind of "built-in" functionality I was looking for. Thanks.

    Forget that fear of gravity,
    Get a little savagery in your life.