Gossamer Forum
Home : Products : Links 2.0 : Customization :

displaying search term with results

Quote Reply
displaying search term with results
I'm pretty sure I saw an answer to this in one of these forums, but I can't find it now to save my life. I wanted to list the search term used with the results so I inserted (using templates):
Quote:
Your search for <%term%> returned...
But when I do a search for more than one term

%20

appears between all of the words instead of a space. Is there a way to get rid of it?
Quote Reply
Re: displaying search term with results In reply to
Anywhere you want to use the unencoded search term, instead of using <%term%>, use <%query%> instead. It should be the same thing but without the "%20" replacing the spaces.

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
Quote Reply
Re: displaying search term with results In reply to
Rock is right. If not using templates, $in{'query'} will do the job. Also, see:

http://www.gossamer-threads.com/...um3/HTML/000630.html
Quote Reply
Re: displaying search term with results In reply to
Bobsie et al,

any tips for this %20 problem using site_html.pl? (not templates)

I tried using both $query and $term and I keep getting the "%20" between my search results.

Any help would be appreciated.

------------------
Brian
wwnurse.com
Quote Reply
Re: displaying search term with results In reply to
Simply use $in{'query'}