search multiple fieldnames from one searchbox?
3 posts by 2 authors in: Forums > CMS Builder
Last Post: December 9, 2008 (RSS)
By bruno - December 9, 2008
Hello!
Im trying to create a search box that will allow me to search an address, city, state and property highlights as keywords. Is there a way to have the form search multiple fields? Perhaps something like this:
name="property_highlights_keyword, address_keyword, city_keyword"
Just not sure of the syntax
Thanks,
Niki
Im trying to create a search box that will allow me to search an address, city, state and property highlights as keywords. Is there a way to have the form search multiple fields? Perhaps something like this:
name="property_highlights_keyword, address_keyword, city_keyword"
Just not sure of the syntax
<form method="post" action="/properties/searchResults.php">
<input class="propertySearchbox" width="250px" type="text" name="property_highlights_keyword" />
<input type="submit" value="Go" class="searchBtn">
</form>
Thanks,
Niki
Re: [bruno] search multiple fieldnames from one searchbox?
By Dave - December 9, 2008
Niki,
You're so close! Good guess! :)
Try this:
<input class="propertySearchbox" width="250px" type="text" name="property_highlights,address,city_keyword" />
See the search docs for more details:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html
Hope that helps!
You're so close! Good guess! :)
Try this:
<input class="propertySearchbox" width="250px" type="text" name="property_highlights,address,city_keyword" />
See the search docs for more details:
http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html
Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
interactivetools.com