This tutorial will teach you how to use PHP and the XMLHttpRequest object [AJAX] to query a database for a value and display a result on the screen without having to refresh the page.
In this particular example, we’re doing a simple query in the style of Google(tm) – Checking for the availability of a username during account registration.
Read more