I have the following code to display options, one of which
has already been selected:
<input
type="hidden" name="categories" size="35"
value="Feature Bytes Faculty Students Research Alumni
Giving">
<SELECT name="category">
<dtml-in
categories>
<dtml-if
"sequence-item==category">
<OPTION value="<dtml-var
sequence-item>" selected><dtml-var
sequence-item></OPTION>
<dtml-else>
<OPTION value="<dtml-var
sequence-item>"><dtml-var
sequence-item></OPTION>
</dtml-if>
</dtml-in>
</SELECT>
This should display a list of the categories, with the
correct one selected. This does not work however thanks to a NameError. Does anyone have any ideas as to what may be the
correct code?
- Alex