Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:10:57 AM

Pages: [1]   Go Down
  Print  
Author Topic: Entropy search  (Read 317 times)
charpress
Spacescooter Operator
*****
Offline Offline

Posts: 41


WWW
« on: August 01, 2002, 03:23:00 AM »

I need some help on setting up a search using CGI.

I created a search index with the CP as shown. The search, when tested there, works correctly.

I then tried using the HTML generated, but with no success. The directions say just paste the code into an HTML page. If you paste it into FrontPage, you just get a display of the HTML code.

If you upload just a HTML page with the code directly to the base directory of the site via FTP and then browse, you get a blank page.

So, how do you get this to work? FrontPage's own search component doesn't work at LunarPages. In any event, the entropy search looks better, if I can get it working. Looking at the code, you would expect a "submit" button to be visible. The generated code is this:

<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
Search Query <input type="text" name="query" value="">
<input type="hidden" name="user" value="charl1">
<input type="hidden" name="basehref" value="http://charleston-press.com">
<input type="hidden" name="template" value="default">
<input type="submit" value="Search">
</form>
Logged
charpress
Spacescooter Operator
*****
Offline Offline

Posts: 41


WWW
« Reply #1 on: August 01, 2002, 03:44:00 AM »

I just noticed that the generated script is looking for "/cgi-sys/entropysearch.cgi" in the cgi directory. That file is not in my cgi directory. Should the CP have put it there when I generated the index? Is that the reason this isn't working?
Logged
stephan
Guest
« Reply #2 on: August 02, 2002, 06:50:00 PM »

Use cgi-bin instead of cgi-sys
Logged
Max
Über Jedi
*****
Offline Offline

Posts: 2534



WWW
« Reply #3 on: August 03, 2002, 01:23:00 AM »

Please make sure you post the html code as html. As i wrote to you in your support email.

If a cgi-sys account folder was not created for you when you enabled the search function, please use cgi-bin.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: