Gossamer Forum
Home : Products : Links 2.0 : Discussions :

search results.

Quote Reply
search results.
I m using keywords.cgi to logging search results.

How cann I set the keywords as a researchable links.I will a link build from mainpage as a livesearch or last searchs.

Here is keyword.cgi
# Keywords Admin Version 1.0 - by Daniel Dixon
# This is a very crude and very primitive version. All it does it show all the keywords in the
# keywords.txt file. Future versions will have keyword searching and editing, plus divide the
# keywords into search pages of 25 or less (user will specifiy).
# This is script was created by Daniel Dixon, manager of Christian-Search.Net. If you have any
# ideas (and a way to do them) for this script, feel free to e-mail me at dan@christian-search.net.
# I can not and will not answer any technical support questions because I don't have time plus
# this script is very easy to setup and should not cause any problems. Refer to the forums if it
# does.
# Path to Your keywords.txt file
$filename = "/home/www/web1/html/cgi-bin/keywords.txt";
# Path to This Script (not needed for this version)
$scripturl = "http://www.yoursite.com/cgi-bin/admin/keywordadmin.cgi";
print "Content-type:text/html\n\n";
open(KEYWORDS,$filename) or dienice ("Can't Open $filename\n");
@indata = <KEYWORDS>;
print "<html>";
print "<head><title>Ozzu webkatalog live suche</title>";
print "</head>";
print "<body bgcolor=#DDDDDD>\n";
print "<table border=1 align=center>";
print "<tr><th><font face=verdana size=2>Keyword:</font></th>";
foreach $words (@indata) {
($keyword,$used,$number) = split(/\|/,$words);
print "<tr>";
print "<td><font face=verdana size=2>$keyword</font></td>";
print "</tr>\n";
print "</table>";
print "<p align=center>\n";
print "<font face=verdana size=2><a href=http://www.christian-search.net target=_parent>Visit Christian-Search.Net</a></font>\n";
print "</body></html>\n";