Simple HTML search box you can add to webpages
September 01, 2009 02:58AM
I noticed quite a few posts on here asking something like "how do I put a search box on my webpage". There are no instructions for doing this (that I can find), so if you are not experienced at HTML/php you might have some problems.

Here is a simple HTML only with no auto-suggest, so does it not require JavaScript. Simply copy and paste this code into the webpage where you want a search box:

<!-- Sphider Simple HTML Search Code -->
<form action="sphider/search.php" method="get">
<input type="text" name="query" id="query" size="40" value="">
<input type="submit" value="Search">
<input type="hidden" name="search" value="1">

You might have to change action="sphider/search.php" to reflect the actual folder that you put Sphider in. For example, if you installed Sphider in a folder called sitesearch, then change it to action='sitesearch/search.php'.

Hope this is helpful
Sorry, only registered users may post in this forum.

Click here to login