in reply to Get form data from select box, html forms, multiple selection
The @days_selected array contains the data you desire.#!/usr/bin/perl use strict; use warnings; use CGI; # create new CGI object my $q = CGI->new(); # clean assignment of CGI parameters my %param = $q->Vars(); # $param{list1} contains selected fields separated # by null character \0 my @days_selected = split /\0/, $param{list1};
Unfortunately the example posted above by AM will only give you the first of the options selected.
Update: Apologies, A, old boy. Thanks, L~R.
bassplayer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (2): Get form data from select box, html forms, multiple selection
by Limbic~Region (Chancellor) on Nov 17, 2003 at 14:50 UTC |