I need a simple search box script, where I can use a simple text database, then when a visitor searches it redirects the surfer to a URL that contains search string.
Example text database:
Car,Automobile,Toyota|[login to view URL]
Trucks,SUV,Pick ups|[login to view URL]
Motorcycle,bike,bicycle,three wheel|[login to view URL]
null|[login to view URL]
Now lets say the surfer puts in the text box 'Cars' then presses the search button, then the script will just redirect the surfer to the url '[login to view URL]
If no search matches any keywords it will be 'null' and take the surfer to the '[login to view URL]' website.
If a search contains keyword string that matches two results such as 'Toyota Truck' which matches both the '[login to view URL]' and '[login to view URL]' URL. In this case the script should redirect to the URL with the FIRST word of the keyword string. So for this case it will redirect to '[login to view URL]' since it has the word 'Toyota' first.
Simple script. I would like PHP with text database. Nothing fancy.