Support Forums

Old 02-21-2007, 04:52 PM   #1
Junior Member
 
Join Date: Aug 2006
Posts: 14
Rep Power: 11
dankellaway is on a distinguished road
Default Quick Search mod help

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>
dankellaway is offline   Reply With Quote
Old 02-22-2007, 05:58 PM   #2
Junior Member
 
Join Date: Aug 2006
Posts: 14
Rep Power: 11
dankellaway is on a distinguished road
Default

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>
This finds everything in category id #10 in my database (Dogs).. in the browser it searches searchresults.php?type=10 .... which gives the result
dankellaway is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 07:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0