Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How I add a search box

Quote Reply
How I add a search box
How I add a search box on my home page.
Links creates its HTML pages in a folder call "directory"

I want to add search box on my main index page.

I tried this but it just comes back to my index page
<form action="http://www.my-site.com/cgi-bin/links/search.cgi">
<input type="text" id="query" name="query" class="text" />
<input type="submit" value="Search" class="submit" />
</form>


I would like also include a drop down box to let a user search by a specific field or fields. ie "company name", "keyword" & "description"

I'm using internal Indexing Scheme

Also, how do I remove categories from the search results. Or how can I display the links results first.

Quote Reply
Re: [Sies] How I add a search box In reply to
Maybe this will help you:

Code:
<form action="http://www.my-site.com/cgi-bin/links/search.cgi">
<input type="hidden" name="d" value="1" />
<input type="text" id="query" name="query" class="text" />
<input type="submit" value="Search" class="submit" />
</form>

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...