Have a look at jQuery autocomplete, this does a pretty good job.
If you don't have hundreds or thousands of entries in the database, seriously consider caching the autocomplete content in a javascript array rather than using AJAX. It's way snappier this way.
Harvey. On 10/09/2010 11:13 a.m., Brendan Brink wrote:
hi all, am wanting to create a text box which on data entry searches a database and creates a drop down list (similar to google search functionality) dynamically that you can click on . can anyone point me in direction of a good tutorial / PDF explaining how to accomplish this with PHP and AJAX cheers brendan
-- Harvey Kane Phone: - Auckland: +64 9 950 4133 - Wanaka: +64 3 746 8133 - Mobile: +64 21 811 951 Email: [email protected] If you need to contact me urgently, please read my email policy www.ragepank.com/email/ -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
