Gossamer Forum
Quote Reply
Search in two fields
Using Andys UltraGlobals, I have the normal search field and now a drop down (Format_Select_Field).
Looks like this:

Code:

<form action="http://www.mysite.com/cgi-bin/links/search.cgi">
<input size="16" type="text" id="searchbox" name="query" value="<%if query%><%escape_html query%><%endif%>" class="text" />

<%Plugins::ULTRAGlobals::Format_Select_Field($Ciudad001,'Ciudad001')%>
<select name="Ciudad001">
<%loop select_loop%>
<option value="<%value%>" <%if selected%>selected="yes"<%endif%>><%name%></option>
<%endloop%>
</select>

<input type="submit" name="Go" value="Buscar" class="submit" />
</form>

Which works fine.

Each of my IDs, have 2 cities. Some only have one, others have two. (Ciudad001 and Ciudad002).
So what ever the person enters in that dropdown, needs to search in both.
Both contain exactly the same item list.

An example can be doctors clinic. They have one clinic in A city, and another in B city.
If I only serach in Ciudad001, Ciudad002 doesnt get listed. So both need to be searched in the same search.

Anyone know how would I go about doing that?

Thanks,

JC
Subject Author Views Date
Thread Search in two fields Gorospe 6534 Aug 18, 2010, 12:11 PM
Thread Re: [Gorospe] Search in two fields
Andy 6443 Aug 19, 2010, 12:48 AM
Thread Re: [Andy] Search in two fields
Gorospe 6414 Aug 19, 2010, 4:41 PM
Thread Re: [Gorospe] Search in two fields
Andy 6408 Aug 19, 2010, 11:32 PM
Thread Re: [Andy] Search in two fields
Gorospe 6414 Aug 20, 2010, 9:20 AM
Thread Re: [Gorospe] Search in two fields
Andy 6404 Aug 20, 2010, 9:31 AM
Thread Re: [Andy] Search in two fields
Gorospe 6335 Aug 26, 2010, 11:29 AM
Post Re: [Gorospe] Search in two fields
Andy 6312 Aug 27, 2010, 1:29 AM
Thread Re: [Gorospe] Search in two fields
tandat 6327 Aug 27, 2010, 3:00 AM
Post Re: [tandat] Search in two fields
Gorospe 6281 Aug 27, 2010, 8:05 AM