Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How to search in just one category

Quote Reply
How to search in just one category
hi everyone

Yes I have searched the archives and the best explanation I found - I have posted below but it just didn't work for me.

Can anyone help me please - I used the code below and found it hasn't worked. I must have done something wrong. You can see this code at work here
http://204.73.203.120/pages/3G_Publications/Magazines/more1.html
The problem is the search cannot be restricted to THAT category but instead searches ALL even when this option is not selected?! How do I fix this ?- thanks for your help
Steve

------------

Apparently the answer ?
but....its me :-(

Posted by
Subject Re: Search in this category?
Posted by AnthroRules (Veteran)
Posted on 28-Sep-00 02:34 PM

I believe that you need to add the following codes in the category.html file:
<form action="<%db_cgi_url%>/search.cgi" method="GET">
<input type="radio" name="category" value="<%category_id%>"> Search this Category
<input type="radio" name="category" value="All"> Whole Site
<input type="text" name="query" size="40">
<input type="submit" value="Search">
</form>

Subject Author Views Date
Thread How to search in just one category cuppa 1458 Jun 22, 2001, 2:14 AM
Thread Re: How to search in just one category
pugdog 1430 Jun 22, 2001, 3:06 AM
Post Re: How to search in just one category
cuppa 1417 Jun 22, 2001, 5:19 AM