The best way of going about this is with a server-side language and a database. So take your pick, PHP & MySQL, ASP & MSSQL.. etc. Personlly I like PHP, its open source, free and easy to get started with. Any server-side language that you pick up is likely to include examples of preforming DB queries, which is the stuff that searches are made of.
HTH!
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::