Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Andy] Search in two fields: Edit Log

Here is the list of edits for this post
Re: [Andy] Search in two fields
In a regular query I get it and works fine. I dont get exactly where do I place that since the query and the dropdown box are both optional.

Meaning you can search for XXXX everywhere (no drop down box selected), or search for XXX in Miami (xxx being the text field and miami being a drop down that searches in Ciudad001 and ciudad002).

The query can search anywhere with regular weight. Its specificly the dropdown that needs to be searched in both fields.

Where would that go? Is it placed where I marked in red?

Code:

<form action="http://www.site.com/cgi-bin/links/search.cgi">
<input size="16" type="text" id="searchbox" name="query" value="<%if query%><%escape_html query%><%endif%>;Field1=Ciudad001;Field1=Ciudad002" 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>

JC

Last edited by:

Gorospe: Aug 19, 2010, 4:42 PM

Edit Log: