In my form I have an input box that asks for a name...

As the user enters the name, I would like the javascript to access the MySQL db and look for names that match this entry. If it matches any of the entries it will display the name with a nice little message next to the input box..."Name Exists"

How would I go about doing this? Can someone point me to a tutorial or in the right direction?