Gossamer Forum
Home : Products : DBMan : Customization :

Re: One drop down (two fields)

Quote Reply
Re: One drop down (two fields) In reply to
In Reply To:
What do you mean they are not working in association?
I have the following fields on my search page:

Name
Region
Type which has (Full, Allied, OTOC)

but the "Type" field doesn't work with the Name and Region fields. For example if I enter Wellington into the Region field and select Full it should bring up all the "Full" members in Wellington but it only brings up all the "Full" members (not all the full members in Wellington).

Hopefully that makes some sense.

In Reply To:
What code did you add in sub query?
sub query {
# --------------------------------------------------------
# First let's get a list of database fields we want to search on and
# store it in @search_fields

my ($i, $column, @search_fields, @search_gt_fields, @search_lt_fields, $maxhits, $numhits, $nh,
$field, @regexp, $line, @values, $key_match, @hits, @sortedhits, $next_url, $next_hit, $prev_hit,
$first, $last, $upper, $lower, $left, $right, $restricted);
local (%sortby);


if ($in{'search_field'}) {
$in{'Full'} = $in{'search_field'};
$in{'Allied'} = $in{'search_field'};
$in{'OTOC'} = $in{'search_field'};
$in{'ma'} = 1;
}



---- removed extra coding ----
Subject Author Views Date
Thread One drop down (two fields) Philip_Clark 1837 Mar 3, 2001, 4:16 PM
Thread Re: One drop down (two fields)
LoisC 1803 Mar 3, 2001, 7:38 PM
Thread Re: One drop down (two fields)
Philip_Clark 1788 Mar 3, 2001, 9:00 PM
Thread Re: One drop down (two fields)
Philip_Clark 1772 Mar 7, 2001, 11:57 AM
Thread Re: One drop down (two fields)
LoisC 1759 Mar 7, 2001, 5:20 PM
Thread Re: One drop down (two fields)
Philip_Clark 1757 Mar 7, 2001, 5:49 PM
Thread Re: One drop down (two fields)
LoisC 1767 Mar 7, 2001, 8:20 PM
Post Re: One drop down (two fields)
Philip_Clark 1749 Mar 8, 2001, 2:10 AM