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 6619 Aug 18, 2010, 12:11 PM
Thread Re: [Gorospe] Search in two fields
Andy 6528 Aug 19, 2010, 12:48 AM
Thread Re: [Andy] Search in two fields
Gorospe 6500 Aug 19, 2010, 4:41 PM
Thread Re: [Gorospe] Search in two fields
Andy 6493 Aug 19, 2010, 11:32 PM
Thread Re: [Andy] Search in two fields
Gorospe 6500 Aug 20, 2010, 9:20 AM
Thread Re: [Gorospe] Search in two fields
Andy 6489 Aug 20, 2010, 9:31 AM
Thread Re: [Andy] Search in two fields
Gorospe 6421 Aug 26, 2010, 11:29 AM
Post Re: [Gorospe] Search in two fields
Andy 6396 Aug 27, 2010, 1:29 AM
Thread Re: [Gorospe] Search in two fields
tandat 6413 Aug 27, 2010, 3:00 AM
Post Re: [tandat] Search in two fields
Gorospe 6366 Aug 27, 2010, 8:05 AM