Thread: Custom Search
View Single Post
  #1  
Old 09-19-2007, 05:31 AM
 
impact-computers impact-computers is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: Sunderland
Posts: 70
 

Default Custom Search

I'm using the code below to perform a custom search of my site, It currently searches the whole site but i want to limit it to searching one Category and its sub Categories.

It will make more sense when you see the page its used on:

http://www.impact-computers.co.uk/shop/pages.php?pageid=7

Can anyone help?


Code:
<p><FORM method="POST" action="search.php" name="productsearchform"> <div align="center"> <p> <INPUT type="hidden" name="simple_search" value="Y"> <INPUT type="hidden" name="mode" value="search"> <INPUT type="hidden" name="posted_data[by_title]" value="Y"> <INPUT type="hidden" name="posted_data[by_shortdescr]" value="Y"> <INPUT type="hidden" name="posted_data[by_fulldescr]" value="Y"> <input type="hidden" name="posted_data[by_quickfind]" value="Y" /> <strong>Enter Printer Name or Cartridge Number Below: </strong></p> <p> <INPUT type="text" name="posted_data[substring]" size="16" style="border:1px inset #cccccc; color:#000000; background:#cccccc; width:128px;"> </p> <p> <input type="submit" value="Search"> </p> </div> </FORM>
__________________
www.Impact-Computers.co.uk (Live Store)
www.Forums.Impact-Computers.co.uk (Customer Forums)

X-Cart version 4.0.19 Gold

Mods installed:
CDSEO
Tab Product Menu
Easy Checkout
Froogle Feed
Shopping.com Feed
Remember Me
Pleasent Payment Details
Recently Viewed Products
Google Checkout
TelaFirma - X-Cart Dynamic Image Generator
Reply With Quote