Click to See Complete Forum and Search --> : Search feature on my website confused


artnastics
08-25-2003, 03:50 PM
I have the cgi script on my page to do a search. But where do I put the cgi script in my directories..... under cgibin? If I do this will the search feature automatically work? And what cgi script do I put in there?
<table border="0" cellspacing="0" cellpadding="0" align="center">
<form action="http://www.dietgoals.com/cgi-bin/search.cgi" method="post">
<tr>
<td align="center" valign="middle">
<input type="text" name="textfield" value="type keywords here" size="12">
</td>
</tr>
<tr>
<td align="center" valign="middle">
<input type="submit" name="Submit" value="search !">
</td>
</tr>
</form>
</table>
<br>
</td>
<td bgcolor="#FFFFFF">

Jupac
08-25-2003, 06:17 PM
.cgi should work in or out of a cgi-bin .pl has to be in cgi-bin

jimr451
08-25-2003, 07:13 PM
Have you written / found a search script to use? If so, there should be some directions to help you out. Where the script can actually reside is dependent on how your provider has the web server configured. In general, cgi-bin is a safe bet.

Also, some search scripts build what's known as an "index" of your site, for faster searching. This means the script scans the site and builds a database of the content to use when someone runs a search. If your search script requires this, you'll need to build the index before it works.

Hope this helps.

-Jim

Jupac
08-25-2003, 07:19 PM
if u dont have 1,dontno how to wrught 1 or it takes too long find 1 here
http://cgi.resourceindex.com
or if u want to do it in php
http://php.resourceindex.com
or search google