Using Andys UltraGlobals, I have the normal search field and now a drop down (Format_Select_Field).
Looks like this:
<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
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