When links shows the results of a query, I would like to show the search query on that page, i.e. Your search for $query provided the following results. How do I print out $query?
Jan 3, 1999, 9:05 PM
Veteran (1509 posts)
Jan 3, 1999, 9:05 PM
Post #2 of 6
Views: 502
For 1.11 (may work in 2b3, but I haven't tried):
in site_html.pl, in the global section, add:
$search_keywords=@search_terms;
Then in search results, you can simply do:
<font size=2 face=arial color="#000000">Found <strong>$cat_hits</strong> categories and <strong>$link_hits</strong> sites for <strong>@search_terms</strong></font>
------------------
You can reach my by ICQ at UID# 8602162
in site_html.pl, in the global section, add:
$search_keywords=@search_terms;
Then in search results, you can simply do:
<font size=2 face=arial color="#000000">Found <strong>$cat_hits</strong> categories and <strong>$link_hits</strong> sites for <strong>@search_terms</strong></font>
------------------
You can reach my by ICQ at UID# 8602162
Jan 4, 1999, 8:58 PM
Veteran / Moderator (3108 posts)
Jan 4, 1999, 8:58 PM
Post #4 of 6
Views: 502
Rock,
I assume you are referring to the Search Again? form that appears when a search fails. If so, go to site_html.pl, find the sub site_html_search_failure routine. Change the following line:
to read:
I think that should work. Let me know.
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/
I assume you are referring to the Search Again? form that appears when a search fails. If so, go to site_html.pl, find the sub site_html_search_failure routine. Change the following line:
Quote:
<p>Search Again? <input type=text size=15 name="query"> <input type=submit value="Search!"><br>to read:
Quote:
<p>Search Again? <input type=text size=15 name="query" value="$in{'query'}"> <input type=submit value="Search!"><br>I think that should work. Let me know.
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/
Jan 5, 1999, 10:45 AM
Veteran / Moderator (3108 posts)
Jan 5, 1999, 10:45 AM
Post #6 of 6
Views: 502
Rock,
I don't know what to tell you. It works on my site perfectly fine. Try it for yourself. Go to www.orphanage.com/cgi-bin/goodstuff/search.cgi and do a search for "rapture thingy whocares" (less the quotation marks).
It will return:
"rapture thingy whocares"
resulted in:
Error: no matching records
Search Again? rapture thingy whocares
More Options
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/
[This message has been edited by Bobsie (edited January 05, 1999).]
[This message has been edited by Bobsie (edited February 11, 1999).]
I don't know what to tell you. It works on my site perfectly fine. Try it for yourself. Go to www.orphanage.com/cgi-bin/goodstuff/search.cgi and do a search for "rapture thingy whocares" (less the quotation marks).
It will return:
Quote:
Your search for "rapture thingy whocares"
resulted in:
Error: no matching records
Search Again? rapture thingy whocares
More Options
------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/
[This message has been edited by Bobsie (edited January 05, 1999).]
[This message has been edited by Bobsie (edited February 11, 1999).]

