in reply to Re: cgi: Grabbing Multiple input values
in thread cgi: Grabbing Multiple input values
Or just use it in a list context:my @selected = $query->param("my_multiple_select");
You might also want to name it myname[] just to remind yourself that multiple values are allowed.foreach my $sel ( @{$query->param("select")} ){ ... }
Have a look at CGI::State. If you follow a naming convention it sets out it will take a CGI.pm query object and turn it into a multidimensional data structure.
The name is off and it wouldn't be the best thing for maintainability but I can see how it could be handy.
Clayton aka "tex"
|
|---|