Gossamer Forum
Home : Products : DBMan : Customization :

Is html.pl aware of the search terms specified ?

Quote Reply
Is html.pl aware of the search terms specified ?
I'm just wondering if html.pl is aware of the search terms specified by the user - or if it's a fairly straightforward mod to be able to make it aware.

Many thanks,
BigGeorge2
Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
You can access the search terms by using the $in{'FieldName'} variables.

What do you want to do?


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





Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
Hello again JPD,

Well, in two implementations of DBMan which I have then the search option is "keyword only" - the user just enters a word or two in the input box and away we go - no other options. What I want to do if the search fails is to be able to put the value which was originally searched for into a different search box, in order that the user can try a new search on a different site for example. So, I think all I want is to be able to extract "keyword" from wherever, whilst I'm in html.pl.

Nice talking with you again Smile
BigGeorge
Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
Nice talking to you, too. Smile

You can access whatever was input in the keyword field by using the variable $in{'keyword'}.

Does that help?


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





Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
Exactly what I was looking for!

Thanks, JPDeni.
Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
Looks like Eliot managed to thank you for an answer to my question before I'd even seen your response myself, but yes, that's exactly what I was looking for JPD. Thanks very much indeed.

Best wishes,
Dave
Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
 Smile

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





Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
That works great, except I can only seem to get the first word of the keywords returned - i.e. if the user entered "Windows 95" then I would just get "Windows". I guess maybe it puts it into some array or other - is there a simple way of getting all the words in the keyword field returned (or am I just doing it wrong ?).
Thanks again,
BigGeorge
Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
That's odd. I don't think I've ever seen anything like that before. As far as I know, it should be able to keep the whole phrase. It does not make an array.

Is the keyword term being entered into a form, or is this a "pre-fabricated" link?


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





Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
Hi JPD,

No, it is being entered into a form, albeit not an original DBMan form. If you remember the URL then you can see one of the forms I'm talking about in the books or software section. When doing a normal search with this form, then it always seems to work ok. I am of course jumping to conclusions that you're willing to go to all the trouble of taking a look (which I shouldn't do). Anyway, if you can shed any light then that would be good. Smile

Many thanks,
BigGeorge.
Quote Reply
Re: Is html.pl aware of the search terms specified ? In reply to
I'd be glad to take a look, but I don't remember the URL. Smile

If you don't want to post it to the list, send me the URL by email at deni@jpdeni.com and I'll take a look at it.


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