There is an old hack way of dealing with this, here you go...
sub fParse {
   if ($ENV{'REQUEST_METHOD'} eq 'GET') {
      @pairs = split(/&/, $ENV{'QUERY_STRING'});
   } elsif ($ENV{'REQUEST_METHOD'} eq 'POST') {
      read (STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
      @pairs = split(/&/, $buffer);
      if ($ENV{'QUERY_STRING'}) {
         @getpairs = split(/&/, $ENV{'QUERY_STRING'});
         push(@pairs,@getpairs);
      }
   } else {
      print "Content-type: text/html\n\n";
      print "Use Post or Get";
   }
   foreach $pair (@pairs) {
      ($key, $value) = split (/=/, $pair);
      $key =~ tr/+/ /;
      $key =~ s/%(a-fA-F0-9a-fA-F0-9)/pack("C", hex($1))/eg;
      $value =~ tr/+/ /;
      $value =~ s/%(a-fA-F0-9a-fA-F0-9)/pack("C", hex($1))/eg;
      $value =~s///g;
      if ($fData{$key}) {
         $fData{$key} .= ", $value";
      } else {
         $fData{$key} = $value;
      }
   }
}
The CGI data is stored in a hash call %fData and the fields with the multi select are comma delimited in the associated key. You can split it from there:
@meSelect = split(/\, /, $fData{$key});
Here is the same script in PERLScript running as ASP:
################################
# Gather Incoming Data Strings #
################################
$qv = $Request->QueryString($Request->QueryString->Key(0));
$fv = $qv."&".$Request->Form($Request->Form->Key(0));
@pairs = split(/\&/, $fv);
foreach $pair (@pairs){
   ($key, $value) = split (/=/, $pair);
   $key =~ tr/+/ /;
   $key =~ s/%(a-fA-F0-9a-fA-F0-9)/pack("C", hex($1))/eg;
   $value =~ tr/+/ /;
   $value =~ s/%(a-fA-F0-9a-fA-F0-9)/pack("C", hex($1))/eg;
   $value =~s///g;
   if ($fData{$key}) {
      $fData{$key} .= ", $value";
   } else {
      $fData{$key} = $value;
}  }
It works. This bit of code has been floating around my library for a very long time. BTW these little subs work with both "GET" and "POST" CGI data.

-The Mage
He of the Black Perl School


In reply to Re: Multiple item selects and CGI.pm headaches! by The Mage
in thread Multiple item selects and CGI.pm headaches! by waswas-fng

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.