Perlfect Solutions

[Perlfect-search] Search from HTML page doesn't work
Mon, 21 Apr 2003 11:36:04 -0400

I am new to Perfect-Search so please bear with my ignorance.  I have
installed and tested Perlfect-Search by directly accessing the
/cgi-bin/perlfect/search/ in my browser as suggested in the README
doc and this works fine.  I am now trying to make an html page that has the
search box in it but can't seem to get this to work.  Everytime I put in a
search term it returns saying there are no results, no errors, just no
returned results.  If I put the exact same term in by directly accessing
the file in my browser it works fine.  I am using the template
search.html file supplied in the installation template directory as the
base for my test html file.  Does anyone have any ideas on what could cause
this and how to fix it?  I have attached my shortened version of the
search.html that I am using.


Mark Dolata

Attachment: search.html


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      <!-- the following meta tag is important to avoid cross site
scripting attacks: -->
      <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
      <title>Your search for '<!--cgi: query_str-->'</title>
<body bgcolor="white" text="black" link="blue" alink="red" vlink="purple">

<br />

      <br /><br />
      <form method="get" action="/cgi-bin/perlfect/search/">
            <input type="hidden" name="p" value="1">
            <input type="hidden" name="lang" value="<!--cgi: lang-->">
            <input type="hidden" name="include" value="<!--cgi:
            <input type="hidden" name="exclude" value="<!--cgi:
            <input type="hidden" name="penalty" value="<!--cgi:
            <input type="hidden" name="sort" value="<!--cgi: sort-->">
            Search again:
            <select name="mode">
                  <option value="all"<!--cgi: match_all-->>Match ALL
                  <option value="any"<!--cgi: match_any-->>Match ANY
            <input type="text" name="q">
                <input type="submit" value="Search"><br /><br />

<br />

<table border="0" cellpadding="2" cellspacing="0" bgcolor="#dddddd" width
      <td>Page <!--cgi: current_page--> of <!--cgi: total_pages--></td>
      <td align="right"><a href
="">Perlfect Search 3.31 (c)
Perlfect Solutions 1998-2003</a></td>