- or download this
[% IF msg == 'success' %]
<p>You were successful.</p>
...
[% msg IF msg %]
... show the form because something went wrong ...
[% END %]
- or download this
$self->run_modes(
'default' => 'default',\
...
'modify_record' => 'database_action',
'other_run_mode' => 'other_sub',
);
- or download this
sub database_action
{
...
return $output;
}
- or download this
sub do_some_database_action
{
...
$result = 'success' if (!$result);
return $result;
}