Click to See Complete Forum and Search --> : predictive text box


carlos98215
08-16-2009, 04:17 AM
Hello all, excuse me if this is an easy question but i am very new to html and trying to build my first web page and do a good job.
I want a box which people can type what there are looking for on the website, so if they type a "d" for example i would like all the matches starting with d to appear and so on, if they then type "r" then all the "dr" will appear below in a neat box.
If anyone can point me in the right direction or has a basic code which i can maybe alter and make slight changes i would be eternally grateful and would have a link to your webpage.
Thanks
Carl

callMeAl
08-16-2009, 06:38 PM
Hi,

I suppose that you want to create dynamically generated list of suggested keywords and phrases - like they have in google.

You can do this kind of thing in AJAX(JavaScript) and PHP. You will find the tutorial and example by clicking on the link placed below:

http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-.html

Have a nice coding:)!

multimediocrity
08-16-2009, 11:04 PM
Sure. You're probably looking for a search box. Google this for more information.

You can do this using JavaScript, PHP, MySQL, or CGI. It all depends on what you want to do. If you have an eCommerce site or something, the functionality probably comes standard with the prebuilt system.

Matt's Script Archive (http://www.scriptarchive.com/) has some CGI-based search features, but it can get complicated fast. You may prefer a JavaScript approach, as it is probably the more simple solution.