radiation
05-04-2009, 03:23 AM
Hi,
I am trying to populate a selection box, using the content of an array as the options. My problem is that all the items of the array are ending up on the one line, and not as seperate selection items.
my code is something like this:
my @array = ("1", "2", "3");
my $cgi = new CGI;
$cgi->Select(
{-multiple=>'multiple'},
$cgi->option(@array)
)
Thanks
I am trying to populate a selection box, using the content of an array as the options. My problem is that all the items of the array are ending up on the one line, and not as seperate selection items.
my code is something like this:
my @array = ("1", "2", "3");
my $cgi = new CGI;
$cgi->Select(
{-multiple=>'multiple'},
$cgi->option(@array)
)
Thanks