Paul,
I'm still struggling with this. I tried to make the changes you suggested (not sure if this is right) but my code now looks like this:
my $count = 0;
my %temp = ();
my $html = $DB->html( ['Links'], $IN );
my $table = $DB->table('Links');
my $names = $table->form_names->{'Ad_Country'};
my $vals = $table->form_values->{'Ad_Country'};
my ($select) = shift;
for my $val (@$vals) {
$temp{$val} = $names->[$count++];
}
return $html->select(
{
value => scalar $IN->param('Ad_category') || $select
sort => [sort(@$names)],
blank => 0,
name => 'Ad_Country',
values => \%temp
}
);
}
This gives me a "Unable to compile 'select_country': " error....
Suggestions or fixes on how I implemeted your suggestion?
Safe swoops
Sangiro
I'm still struggling with this. I tried to make the changes you suggested (not sure if this is right) but my code now looks like this:
Code:
sub { my $count = 0;
my %temp = ();
my $html = $DB->html( ['Links'], $IN );
my $table = $DB->table('Links');
my $names = $table->form_names->{'Ad_Country'};
my $vals = $table->form_values->{'Ad_Country'};
my ($select) = shift;
for my $val (@$vals) {
$temp{$val} = $names->[$count++];
}
return $html->select(
{
value => scalar $IN->param('Ad_category') || $select
sort => [sort(@$names)],
blank => 0,
name => 'Ad_Country',
values => \%temp
}
);
}
This gives me a "Unable to compile 'select_country': " error....
Suggestions or fixes on how I implemeted your suggestion?

Safe swoops
Sangiro