Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Advanced Search

Quote Reply
Advanced Search
Hello All,

I am a new Link SQL user and I appreciate it if you help me with this question:

I am trying to make an advanced search page and I know that this is possible because I passed the following parameters to search.cgi and it gave me the correct results:

search.cgi?Hits=1&Votes=5&............

Now I want to know how should I make the search form for this, so it asks the user for the number of Hits + number of Votes + user e-mail and .... All the Fields and then if the user filled only 2 fields then we will only search 2 fields if they only entered one field then we only search one.

Thanks in advance,

PCMANIA

Quote Reply
Re: Advanced Search In reply to
There's already an advanced search page.

http://www.domain.com/path/to/search.cgi

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Advanced Search In reply to
Hi Paul and thanks for the quick answer,

I want to search field by field the curreent advanced search will not do that. It searches all the fields together!



Quote Reply
Re: Advanced Search In reply to
AFAIK if a field is left blank it is ignored by the search routine.

Some examples of field search options you could use:

<input type="checkbox" name="isNew" value="Yes"> - checks for New links
<input type="checkbox" name="isPopular" value="Yes"> - checks for Popular links

The basic format is:

<input type="field type here" name="links_sql_field_name_here" value="default value, or blank">

PS. If the field name has a space in it, e.g.; "Contact Name", use an underscore to replace the space when naming the field, i.e.; "Contact_Name"

Hope this helps.

All the best
Shaun

Quote Reply
Re: Advanced Search In reply to
Thank you very much! It works like a charm! I really appreciate this :)

Thanks again
PCMANIA