Gossamer Forum
Home : Products : DBMan : Installation :

Keyword search

Quote Reply
Keyword search
Here is the problem that I am having:

I want to setup a search engine that searches only one field of the database from my homepage (ie. have a small text box on my front page ready to search one field of my DB without having the user login). I know how to reference the search page to bypass the login but I am having problems referencing just one portion of the search page. If anyone could help I would greatly appreciate it.... Thanks ALOT
Quote Reply
Re: Keyword search In reply to
I'm not sure what you mean by "I am having problems referencing just one portion of the search page." I'll need a little more explanation.

------------------
JPD





Quote Reply
Re: Keyword search In reply to
Here is what I mean:

have a text box with a search button below it.... like this

|----------| - Text Box
SEARCH - Search button


I want to have a search setup but not as detailed as the whole advanced search. Just one box used for searching. THe program is searching only one field of the users entry and I dont need the whole search page.
Quote Reply
Re: Keyword search In reply to
Hi,

Here is the HTML FORM to do a search in only one field.

Code:
<FORM ACTION="db.cgi" METHOD=GET>
<INPUT TYPE=TEXT NAME="name" VALUE="">
<INPUT TYPE=SUBMIT NAME="view_records" VALUE="Search">a
</FORM>

The name is the field you want to do the search in.

Hope this helps.
Eli

[This message has been edited by JFrost (edited June 21, 1999).]

[This message has been edited by JFrost (edited June 21, 1999).]
Quote Reply
Re: Keyword search In reply to
Thanks alot... I got everything working perfect now except one small thing.

When I click on the SEARCH button the search works fine but when I hit return after entering a word I get an UNKNOWN ACTION error. Can anyone help me on this?? Thanks
Quote Reply
Re: Keyword search In reply to
Hi,

Add this to the form

<INPUT TYPE=HIDDEN NAME="view_records" VALUE="1">

It should work now.

Eli
Quote Reply
Re: Keyword search In reply to
Thanks again. Everything is working fine right now. I have my search working great.

Rich
Quote Reply
Re: Keyword search In reply to
How about if I want to do a all field
search, and my database is not "default"?
Quote Reply
Re: Keyword search In reply to
oh I got it now, cheers. Smile