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:
Using CGI, all the checked boxes will be available in an array returned by param. Use something similar to:<input type="checkbox" name="year" value="1996" /> <input type="checkbox" name="year" value="1997" /> . . . <input type="checkbox" name="year" value="2005" />
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 |