Are you sure you have the following codes:
my $rec = $db->get_record ($id, 'HASH');
if ($rec) {
&site_html_recommend ({ error => "Sorry an error occurred", %in, %$rec }, $dynamic) and return;
}
else {
&site_html_error ({error => "Unknown Link", %in}, $dynamic);
}
If not, then the codes won't work...if you grabbing the record in an earlier sub, like sub main...then you have to use the following codes:
&process_form ({%$rec}, $in, $dynamic);
Regards,
Eliot Lee
Code:
my $rec = $db->get_record ($id, 'HASH');
if ($rec) {
&site_html_recommend ({ error => "Sorry an error occurred", %in, %$rec }, $dynamic) and return;
}
else {
&site_html_error ({error => "Unknown Link", %in}, $dynamic);
}
If not, then the codes won't work...if you grabbing the record in an earlier sub, like sub main...then you have to use the following codes:
Code:
&process_form ({%$rec}, $in, $dynamic);
Regards,
Eliot Lee