[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Display mv_seachspec after a coordinated search
Hi, all...
In my products database, I've a field called "producttype" which
contains "V" for VHS videos and "G" for videogames. I do a coordinated
search for VHS categories:
<FORM ACTION="[process-search]" METHOD=POST>
<INPUT TYPE="hidden" NAME="mv_coordinate" VALUE="yes">
<INPUT TYPE="hidden" NAME="mv_search_map" VALUE="
mv_searchspec=search1
mv_searchspec=search2
">
<INPUT TYPE="hidden" NAME="mv_search_field" VALUE="category">
<INPUT TYPE="hidden" NAME="mv_search_field" VALUE="producttype">
<INPUT TYPE="hidden" NAME="mv_matchlimit" VALUE="20">
<b>Search by catagory:</b>
<SELECT NAME="search1">
<option value="Action" SELECTED>Action / Adventure
<option value="Classics">Classics
<option value="Comedy">Comedy
<option value="Cult">Cult
<option value="Disney">Disney
<option value="Documentary">Documentary
<option value="Drama">Drama
<option value="Family">Family
<option value="Fantasy">Fantasy
<option value="Foreign">Foreign
<option value="Horror">Horror
<option value="Kids">Kids
<option value="Music">Music / Musicals
<option value="Sci Fi">Science Fiction
<option value="Western">Western
</select>
<INPUT TYPE="hidden" NAME="search2" VALUE="V">
<INPUT TYPE="submit" VALUE="Search">
<INPUT TYPE="hidden" NAME="mv_doit" VALUE="search">
</FORM>
Now, at the present time we don't have Disney films in the database.
But, under IE, the results page will print:
"Sorry, no match for DisneyV."
Netscape will print "Sorry, no match for Disney".
I tried using the [perl] tag to chop off the V in the string, but that
didn't seem to work. How can I get it to just display the first
searchspec, in this case Disney, without printing the V?
Thanks,
Brian
_________________________________________________________________________
Brian Wright Aturna Communications Inc.
bdw@aturna.com Internet Services
WWW http://www.aturna.net
_________________________________________________________________________