in reply to drop down menus
You may also want to look at HTML::Embperl, which has a feature to automatically select combo box items (or fill in any other form elements) for you.<% foreach (sort keys %vals) { %> <select name="<%= $_ %>"> <option value="1"<%= ($vals{$_}) ? ' selected' : '' %>>On </option> <option value="0"<%= ($vals{$_}) ? ' selected' : '' %>>Off </option> </select> <% } %>
|
|---|