Hi,
Try this as a global (Thanks Paul for finishing this one for me also):
my $return = q|<select name="Foo">|;
my @list = $DB->table('Countries')->select->fetchall_list;
$return .= map { q|<option>$_</option>| } @list;
$return .= q|</select>|;
return $return;
}
If you have not made a global before.... let me know.
Basically you have to give this global a name when you enter it, say select_country... then the tag you would place would be <%select_global%>.
http://www.iuni.com/...tware/web/index.html
Links Plugins
Try this as a global (Thanks Paul for finishing this one for me also):
Code:
sub { my $return = q|<select name="Foo">|;
my @list = $DB->table('Countries')->select->fetchall_list;
$return .= map { q|<option>$_</option>| } @list;
$return .= q|</select>|;
return $return;
}
If you have not made a global before.... let me know.
Basically you have to give this global a name when you enter it, say select_country... then the tag you would place would be <%select_global%>.
http://www.iuni.com/...tware/web/index.html
Links Plugins