Help for this page

Select Code to Download


  1. or download this
    perl -MCGI=:standard -e 'print popup_menu({ -name    => "query",
                                                -values  => [1, 2, 3],
    ...
    <option selected="selected" value="2">label2</option>
    <option value="3">label3</option>
    </select>
    
  2. or download this
        template 'index', { name => 'query',
                            options => { label1 => 'Option 1',
    ...
                            default => 'label2',
                          };
    
  3. or download this
    <select name="<% name %>" >
        <%- FOR o IN options %>
    ...
        <%- END %>
    </select>