[ic] one-click, drop-down, AND sql search

Trentt Cramer - Northern Sun interchange-users@icdevgroup.org
Thu Oct 31 17:04:00 2002


This form works correctly. The only problem with it is that I want this to
be a one-click.


     <form  action="[area search]" method=post>
        <input type=hidden name=mv_session_id value="[data session id]">
        <input type=hidden name=mv_substring_match value="Yes">
        <input TYPE=hidden name=mv_matchlimit value="20">
        <input type=hidden name=mv_search_map value="
                                                      mv_searchspec=search1

mv_searchspec=search2">
        <input type=hidden name=mv_search_field value=status>
        <input type=hidden name=mv_search_field value=types>
        <input type=hidden name=search1 value=gone>
       <b>Stuff that's gone</b>
        <SELECT NAME=search2>
          <OPTION VALUE="">ALL
          [SQL type=list query="SELECT name FROM typelist ORDER BY name"]
           <OPTION [selected search2 [sql-param name]]
           VALUE="[sql-param name]">[sql-param name]
          [/SQL]
        </SELECT>
          <center><input type="image" alt="Search" src="go.gif" border=0>
            </td>
        </form>
: