|
|
#1 |
|
Junior Member
Join Date: Aug 2006
Posts: 14
Rep Power: 11 ![]() |
I'm having a bit of trouble getting part of a modification to work for the Quick Search mod by juven14. I have included multiple drop down lists to select either Cats or Dogs (see code below). It works fine to choose a specific breed from either but when 'Search All' is selected from one of the lists the search results show everything from both Cats and Dogs listings together where I only want to show all from the Cats listings or all from the Dogs listings.
Is there something inside searchresults.php which pulls everything from all categories in the database? Code:
<form name="search" id="search" method="get" action="searchresults.php">
<tr> <td> <div id="foo"><br>Search dog listings: <select name="type" id="type">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option> {search_category}
</select><br>Choose a county:<select name="state" id="state"> <option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option> {search_states} </select>
<input type="submit" name="Submit1" value="{$smarty.const.LANG_SEARCH_BUTTON}" /></div> </td> </tr></form>
<form name="search1" id="search" method="get" action="searchresults1.php">
<tr> <td> <div id="foo1"><br>Search cat listings: <select name="type1" id="type">
<option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option> {search_category1} </select><br>Choose a county:<select name="state" id="state"> <option value=''>{$smarty.const.LANG_SEARCH_ALLCAT}</option> {search_states} </select>
<input type="submit" name="Submit2" value="{$smarty.const.LANG_SEARCH_BUTTON}" /></div> </td> </tr></form>
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2006
Posts: 14
Rep Power: 11 ![]() |
It's ok I worked out a solution...
Code:
Search dog listings: <select name="type" id="type">
<option value='10'>{$smarty.const.LANG_SEARCH_ALLCAT}</option> {search_category}
</select>
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| quick search mod | juven14 | v3.0 Questions & Support | 39 | 08-12-2007 09:25 AM |
| Quick SEO optimization for showlistings | civ | v3.1 Modules & Modifications | 2 | 01-03-2007 09:26 AM |
| Search in Navigation bar | marketingsolutions | v3.1 Questions & Support | 0 | 11-02-2006 12:10 PM |
| Aligning the "zip code," etc. search fields | spaceboy | v3.1 Modules & Modifications | 5 | 09-09-2006 02:27 PM |
| Adding Search to | sleepy | HTML, CSS, and Design Help | 8 | 04-09-2006 12:12 PM |