use CGI;
my $cgi = new CGI;
print $cgi->br, $cgi->start_br, $cgi->end_br, "\n";
####
####
use warnings;
use strict;
use CGI;
my $cgi = new CGI;
my $n = 1;
my @COLUMN_TYPES = qw ( one two three four five );
my %attributes = (
'onChange' => 'displaydbfields(' . $n . ')',
'id' => 'coltype' . $n,
);
my $col = { type => 'some type' };
print $cgi->popup_menu(
-id => 'coltype' . $n,
-name => 'type',
-values => \@COLUMN_TYPES,
-default => $col->{type},
-attributes => \%attributes,
),
"\n";
####