In perl, using the CGI.pm module, you'd use something like
use CGI;
$query=CGI::new();
@values=$query->param("name_of_select");
This would put the multiple values into the array @values, and you can take it from there.
In PHP, I don't know - I'm assuming that the values will automatically be put into an array instead of a string, but I've never tried it. Anyone?
What language is going to receive the form values?
If perl, SugarKanes way will work, or this is an alternative:
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
if (length($buffer) < 3) {
$buffer = $ENV{QUERY_STRING};
}
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$name =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/\r//g;
$FORM{$name} = $value;
$o .="<br> Form name : <b>$name</b> Value : <b> $value </b>\n" if $debug>3;
}
Then all your form values are in %FORM{'name'}