i think i might have cracked it...
EDIT>> NOPE - the code below forgets the user selection if the form is returned with an error, because I've taken the "Tags" line out. How would I go about keeping the Tags but also passing in the other value?
Tag to go into the template...
<%build_select_menu(Days)%>
global to add called "build_select_menu"...
sub {
my $column = shift ;
my $table = $DB->table("Links");
my $html = $DB->html($table, $IN);
my $form = $html->select({name => "$column"});
return $form;
}
regan
EDIT>> NOPE - the code below forgets the user selection if the form is returned with an error, because I've taken the "Tags" line out. How would I go about keeping the Tags but also passing in the other value?
Tag to go into the template...
<%build_select_menu(Days)%>
global to add called "build_select_menu"...
sub {
my $column = shift ;
my $table = $DB->table("Links");
my $html = $DB->html($table, $IN);
my $form = $html->select({name => "$column"});
return $form;
}
regan