in reply to multiple-choice selects

From the CGI docs on CPAN

@values = $cgi->param('foo');

That should give you all the selected values for field foo.

The following will give you a list of all fileds. Then its just a matter of going throuh all the fields and printing out their values.

my @fields = $cgi->param();

Finished code might look something like

my @fields = $cgi->param(); foreach my $field (@fields) { print "Field $field = " . join(",", @{$cgi->param($field)}) . "\ +n"; }

Thats not very pretty and its untested, but its the general idea. I like to prefix groups of fields with something so that then you can grep just them out later. So you could name each select box param_1,param_2, ect. That way you can include other fields that you want to handler differently. Good Luck!


___________
Eric Hodges