Hi everyone,
i use this variable in globals to auto-generate drop-down menus in add.html:
Now i have a problem with the modify.html:
How can i pre-fill the Drop-Down menu in modify.html like the text-fields?
And how can i do this for check-boxes (if column-value="Yes" then box is checked) ?
Thanks in advance!
Coyu
i use this variable in globals to auto-generate drop-down menus in add.html:
sub {
my %hash;
my $form_names_array_ref = $DB->table('Links')->form_names->{'Einsendeschluss'};
my $form_values_array_ref = $DB->table('Links')->form_values->{'Einsendeschluss'};
foreach my $form_name (@{$form_names_array_ref}) {
foreach my $form_value (@{$form_values_array_ref }) {
$hash{$form_name} = $form_value;
}
}
my $html = $DB->html ( ['Links'], $IN );
return $html->select ( {
name => 'Einsendeschluss',
value => $IN->param('Einsendeschluss'),
values => { %hash }
});
}
Now i have a problem with the modify.html:
How can i pre-fill the Drop-Down menu in modify.html like the text-fields?
And how can i do this for check-boxes (if column-value="Yes" then box is checked) ?
Thanks in advance!
Coyu