
ennisoft
User
May 13, 2009, 5:00 AM
Post #1 of 2
(1066 views)
Shortcut
|
|
More on custom search boxes
|
Can't Post
|
|
Hi, I know this has been pretty well covered in various forum threads, but I have come up against a couple of issues that I can't see solutions to! I have created a set of article fields which are only used in a single, password protected category. I want to be able to filter the returned records by using the keyword and search fields arrangement. So far so good, this all works in a simple fashion. I want to make it more complex, however, by either: 1. using list boxes to select values/keywords and matching them against specific fields, much like the article date start and end range found in the advanced search template. 2. allowing multiple word searches where all keywords must be present, but can be in any of the search fields. Currently the search only accepts multiple words where the combination is found in the same search field. The first would be preferable (and, I'm guessing, more achievable!). My search code looks like this:
<form action="http://www.clareed.ie/cgi-bin/content/search.cgi" method="post"> <input type="hidden" name="action" value="search"/> <input type="hidden" name="action" value="search"/> <input type="hidden" name="sortBy" value="st_surname, st_firstname"> <input type="hidden" name="keywordSearchFields" value="st_sector, st_region, st_surname, st_firstname, st_subjects"> <input type="hidden" name="categoryNum" value="73"> <input type="hidden" name="perpage" value="100"> <input type="hidden" name="template" value="articleLists/st_Index.html"> Keyword<input type="text" name="keyword" value="" size="25"/> <input type="submit" name="" value="Search >>" class="button"/> </form> Thanks, Ross
|