Gossamer Forum
Home : Products : DBMan : Customization :

search/ID

Quote Reply
search/ID
Hi,
I asked this question a couple of days ago about seaerching all fields. I was given the following code--
<form action="get" method="/cgi-bin/dbman/db.cgi"><input type="hidden" name="db" value="default"><input type="hidden" name="uid" value="default">Search for: <input type="keyword" size="40"><input type="submit" name="view_records" value="1"></form>

It doesn't seem to work at all.

Second of all...do i have to use the ID field.
I've tried to remove it from the .cfg and the html.pl file but it still hampers me.

any ideas.

neil



Quote Reply
Re: search/ID In reply to
What exactly do you want to do? The keyword search looks in all fields for whatever term is entered into the input field. Is that what you want to do?

You do not have to use the field that is named ID. However, you must have a $db_key field defined that has a unique value for each record.


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





Quote Reply
Re: search/ID In reply to
Oops
------------------
JPD







[This message has been edited by JPDeni (edited March 24, 2000).]
Quote Reply
Re: search/ID In reply to
Also....you posted this code:
Code:
<form action="get" method="/cgi-bin/dbman/db.cgi">

Try changing that to:
Code:
<form action="/cgi-bin/dbman/db.cgi" method="get">

Melanie
Quote Reply
Re: search/ID In reply to
Thanks..

will try it now.

cya

neil