Gossamer Forum
Home : Products : DBMan : Installation :

HELP! Can I put WW as default?

Quote Reply
HELP! Can I put WW as default?
Hello to everybody
well, the quetion is simple (but I dunno the solution...)
how can I configure db.cgi for obtaining "exact phrase" (ww) instead of "match any" (ma) as the default search option?
I've tried to put $in{'ma'} = "off"; but it doesn't work.
I've also tried $in{'ww'} = "on"; with the same negative result.
thanks a lot in advance for the feedback,

Fabiano

Quote Reply
Re: HELP! Can I put WW as default? In reply to
Taken from the FAQ noted below under "Searching"

If you want to make that the default, so that users have to match the whole word, take the option out of the search options subroutine and add a hidden tag to html_record_form

<INPUT TYPE="hidden" name="ww" value="1">

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: HELP! Can I put WW as default? In reply to
hello, thanks a lot for the reply and also for the Link.
Fabiano