<select name="order"> <for start="1" end="{$order}"> <option value="{$i}">{$i}</option> </for> </select>