Forum Moderators: open
I know how to create a form like so
<form method="post" class="search" action="">
<p><input name="item" class="text" id="item" type="text" />
<input name="search" class="button" value="Search" type="submit" /></p>
</form>
I always thought you had to create a database for all info on your website and direct the search keywords to the db file fields.
Is it possible to do this without creating a db... any assistance is most welcome...
Thanks in advance,
Novice
A database is a collection of data. Usually in a structured fashion, but not necessarily.
Ergo, your site's HTML pages can be viewed as a database.
A (very) simple search can then be written which will scan the web pages for the search term, and display the page containing the term.
There are numerous free scripts available in Perl and probably other languages for site searching which you can amend to suit your own site.
Matt
Site Search - how to make it a total asset [webmasterworld.com]