[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] [mv3] Need help with in-page searching
****** message to minivend-users from "Allgear.net" <allgear@ipass.net> ******
I'm using mv3.15 on RH61 perl v5.005_03
I have a database that has fields like:
code make model year ol exr
001 Honda CB750 1986 1101 5503
.... lots more HOnda's
469 Kawaksaki XXX 1999 1101 5502
... and more makes and models follow
I want to set up a search page that will allow the customer to search on
make, model and year
I've been working on this for some time now and can only get this to work if
I go to subsequent pages - Has anyone implemented this type of search and
feel like sharing some tips ?
I want the customer to select the make of the bike , then have the model
listing refreshed to show only the models that correspond to the make and so
on with the year - I also want them to choose what they are looking for "oil
filters" ol column
I can get the loops to work if I put them on separate pages - I want these
all one page and I think MV can do it I just don't have the right
combination of codes.
any help would be greatly appreciated!!!
this is what I have now: I've been changing this drastically for the past
few hours!
<HTML>
<HEAD>
<TITLE>[L]Search[/L] __COMPANY__</TITLE>
</HEAD>
<BODY MV="body 1">
__LOGOBAR__
__MENUBAR__
[include pages/leftside.html]
<FONT FACE="arial,helvetica">
<TABLE WIDTH="100%">
<TR VALIGN=TOP><TD COLSPAN=3>
<FORM ACTION="[process-target main]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
<H2> Search for Oil Filters and blah blah blah that fit your Motorcycle</H2>
<TR><TD>
<SELECT onChange="this.form.submit()">
<OPTION VALUE=""> choose make
[loop search="fi=bikelist/sf=make/ml=700/un"]
[loop-change model]
[condition][loop-data bikelist make][/condition]
<!-- [loop-code] -->
<OPTION VALUE="[loop-data bikelist make]">[loop-data bikelist make]
[/loop-change model]
[/loop]
</SELECT>
</TD><TD>
<SELECT onChange="this.form.submit()">
<OPTION VALUE=""> choose model
[loop search="fi=bikelist/se=[scratch make]/sf=make/ml=700/un"]
[loop-change model]
[condition][loop-data bikelist model][/condition]
<!-- [loop-code] -->
<OPTION VALUE="[loop-data bikelist model]">[loop-data bikelist model]
[/loop-change model]
[/loop]
</SELECT>
</TD></TR>
</FORM>
__NO_RIGHT__
__MENUBOTTOM__
__COPYRIGHT__
<!-- current page: @@MV_PAGE@@ -->
</body> </html>
-Anita Yefko
Allgear.net
-
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