Gossamer Forum
Home : Products : DBMan : Discussions :

Searching multiple categories from a select field

Quote Reply
Searching multiple categories from a select field
Hello,

I've done a lot of reading on different search options, and I think what I need to be done can be done, but I wasn't sure what information I found applied to my situation.

Here's what I need to do:

On a static web page, set up a search based on 3 drop-down menus, like this:

<form action="cgi-bin/dbman/db.cgi" method="GET">
<input type=hidden name="db" value="default">
<input type=hidden name="uid" value="default">

<select name="*"><OPTION VALUE="*">Search for a
<OPTION value="DIL">Drive In Lodge
<OPTION value="FIL">Fly In Lodge
<OPTION VALUE="BB">Bed and Breakfast
</select>
<br><select name="*">
<option VALUE="*">That offers...
<OPTION value="CO">Canoe Outfitting
<OPTION value="ECO">Eco Tours
<OPTION value="WA">Winter Accommodations</select>

<br><select name="*"><option VALUE="*">And provides...
<option value="AP">All meals
<option value="HK">No meals</select>

<INPUT TYPE="HIDDEN" NAME="mh" VALUE="10" SIZE=3>
<INPUT TYPE=HIDDEN NAME="sb" VALUE="ID">
<input type="submit" NAME="view_records" value="Go">
</form>

The problem is that each of these cryptic codes (AP, HK, CO, ECO, etc) are different categories in default.cfg, like this:

'HK' => [10, 'alpha', 0, 2, 0, '', ''],
'AP' => [11, 'alpha', 0, 2, 0, '', ''],
'MAP' => [12, 'alpha', 0, 3, 0, '', ''],
'PP' => [13, 'alpha', 0, 2, 0, '', ''],

Usually, you specify the category in <select name="category"> but since they're all different categories, I figured I'd have to do this by keyword?

If I do have to do this by keyword, would I have to implement part of the boolean MOD to allow AND searches? And what about exact matches. The code AP may match the word "apartment" for example in another field. I'd just want AP resuts returned.

I would appreciate any help anyone can give. Please!!
Subject Author Views Date
Thread Searching multiple categories from a select field jadey 9846 Oct 30, 2002, 2:54 PM
Thread Re: [jadey] Searching multiple categories from a select field
Andy 9737 Oct 31, 2002, 2:15 AM
Thread Re: [Andy] Searching multiple categories from a select field
jadey 9693 Oct 31, 2002, 7:10 AM
Post Re: [jadey] Searching multiple categories from a select field
Andy 9693 Oct 31, 2002, 7:14 AM
Thread Re: [jadey] Searching multiple categories from a select field
joematt 9804 Oct 31, 2002, 11:54 AM
Thread Re: [joematt] Searching multiple categories from a select field
LoisC 9681 Oct 31, 2002, 1:51 PM
Thread Re: [LoisC] Searching multiple categories from a select field
jadey 9666 Nov 1, 2002, 9:29 AM
Thread Re: [jadey] Searching multiple categories from a select field
jadey 9650 Nov 3, 2002, 4:34 PM
Thread Re: [jadey] Searching multiple categories from a select field
joematt 9589 Nov 4, 2002, 7:37 AM
Thread Re: [joematt] Searching multiple categories from a select field
jadey 9640 Nov 6, 2002, 8:58 AM
Thread Re: [jadey] Searching multiple categories from a select field
joematt 9603 Nov 6, 2002, 9:21 AM
Thread Re: [joematt] Searching multiple categories from a select field
jadey 9568 Nov 10, 2002, 2:16 PM
Thread Re: [jadey] Searching multiple categories from a select field
joematt 9540 Nov 11, 2002, 7:31 AM
Thread Re: [joematt] Searching multiple categories from a select field
jadey 9553 Nov 12, 2002, 12:00 PM
Post Re: [jadey] Searching multiple categories from a select field
jadey 9530 Nov 12, 2002, 12:06 PM