<ol>
<li>
<label for="browsecategory">Category: </label>
<select id="browsecategory" name="browsecategory">
<select id="browsecategory" name="browsecategory" required="required">
[% FOREACH cat IN uploadcategories %]
<option value="">Choose</option>
<option value="[% cat.code | html %]">[% cat.name | html %]</option>
[% END %]
[% IF cat.code == browsecategory %]
<option value="[% cat.code | html %]" selected="selected">[% cat.name | html %]</option>
[% ELSE -%]
</select>
</li>
</ol>
}
$template->param(
mode => 'report',
msg => $msg,
uploads => $uploads,
browsecategory => $browsecategory,
);
output_html_with_http_headers $input, $cookie, $template->output;
-