I require script that can take a text file of search queries, and suggest a list of queries to the user, based on what has been input into the search form (searchbox).
Some examples of this are:
[login to view URL]
or
[login to view URL]
The queries in the text file are each on a new line.
e.g.
Test Search
Test
Search
If the user starts to type tes.... the script should suggest (a href="/search?q=test+search")Test Search(/a)
...in a floating HTML element or something similar. There should also be a function to allow me to limit the amount of suggestions given. Then code has to be secure and will be extensively tested to confirm.