When I post a search from the outside search box I get a HTTP 404 page with the following in the address field up top;http://www.whycertainly.net/Search/Newspapers/<http://www.homewithgod.com/cgi-homewithgod/links/search.cgi/?asite_url=http%3A%2F%2Fww w.whycertainly.net&asite_title=&query=newspapers.
I have added the following to my sub_html_search_resultsin the site_html_templates.pl
# --------------------------------------------------------
# This routine displays the search results.
#
my $term = &urlencode ($in{'query'});
&html_print_headers;
print &load_template ('search_results.html', {
term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
asite_url => $asite_url,
asite_title => $asite_title,
%in,
%globals
});
}and put the following code in my search box form
<INPUT type="hidden" name="asite_url" value="http://www.whycertainly.net">
<INPUT type="hidden" name="asite_title" vaue="WhyCertainly.net">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><input type="text" size=15 name="query"> <input type=submit value="Search!"></td></tr>
</table>
</div>
</form>and the following in my search_results.html
Return to <a href="<%asite_url%>"><%asite_title%></a>
<%endif%>What am I overlooking?
------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net
I have added the following to my sub_html_search_resultsin the site_html_templates.pl
Code:
sub site_html_search_results { # --------------------------------------------------------
# This routine displays the search results.
#
my $term = &urlencode ($in{'query'});
&html_print_headers;
print &load_template ('search_results.html', {
term => $term,
link_results => $link_results,
category_results => $category_results,
next => $next,
cat_hits => $cat_hits,
link_hits => $link_hits,
asite_url => $asite_url,
asite_title => $asite_title,
%in,
%globals
});
}
Code:
<form action="<http://www.homewithgod.com/cgi-homewithgod/links/search.cgi/" method="GET"> <INPUT type="hidden" name="asite_url" value="http://www.whycertainly.net">
<INPUT type="hidden" name="asite_title" vaue="WhyCertainly.net">
<h2>Search</h2>
<div class="margin">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td><input type="text" size=15 name="query"> <input type=submit value="Search!"></td></tr>
</table>
</div>
</form>
Code:
<%if asite_url%> Return to <a href="<%asite_url%>"><%asite_title%></a>
<%endif%>
------------------
Jimmy Crow
http://www.homewithgod.com
webmaster@homewithgod.net