Something like this assuming you're using the get method of a form. This also assumes you've passed $test properly to smarty.
Quote:
<select name=dropdown_name>
{section name=test_idx loop=$test}
<option value={$test[test_idx]} {if $smarty.get.category eq $test[test_idx]}selected{/if}>{$test[test_idx]}</option>
{/section}
</select>
|
Carrie