[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: Remembering mv_searchspec (Was: Re: Thanks a lot!)
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
Hi Gideon,
This is actually covered in the documentation (tag selected and checked)
but ok:
- Save the mv_search_field in a variable let's say [value search_field]
put the following line into the set search values block:
[value name="search_field" set="[value mv_search_field]"]
- replace the option lines:
<option VALUE="Artist" selected>By Artist
becomes
<option VALUE="Artist" [selected name="search_field" value="Artist"]>By Artist
do this for all options.
- If you happen to develop an online record store, send nice techno CD to me
(hardtrance or acid)
This step may not be necessary to make the solution work.
Cheers, Frank
>Hi Frank,
>
>Thanks for the searchterm-advise. I give customers the oppertunity to search
>for, Artist, Title or Label:
>
> <FORM ACTION="[process-target main]" METHOD=post>
> [set search values]
> [value name="searchterm" set="[value mv_searchspec]"]
>[/set]
>
><font face="verdana, helvetica, arial" size=2><b>Quick find</b></font>
> <select NAME="mv_search_field">
>
> <option VALUE="Artist" selected>By Artist
> <option VALUE="Title">By Title
> <option VALUE="Label">By Label
> </select>
> <INPUT TYPE="text" NAME="mv_searchspec" value="[value searchterm]" SIZE=13>
> <IMG alt="" height=1 src="catalog_00.gif" width=41>
> <INPUT TYPE="image" src="go.gif" border="0" alt="Search" VALUE ="submit">
>
> <INPUT TYPE="hidden" NAME="mv_doit" VALUE="search">
> <INPUT TYPE="hidden" NAME="mv_matchlimit" VALUE="20">
> <INPUT TYPE="hidden" NAME="mv_check" VALUE="search values">
>
>
></FORM>
>
>Now, if someone did a search by "title", on the results page, they can see
>what they searched for: value=[value searchterm], but the 'selector' is back
>to "Artist".
>
>How can I make the selector stay on the <option> that was used for the
>search ?
>
>Thanks in advance,
>
>-Gideon
--
Dual rounds of ROT-13 encryption discontinued. Somebody was able to crack this.
Frank Miedreich
Max-Planck-Institut fuer psychologische Forschung
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list