Ajax Example

Each time you type a new letter in the Email ID box, a query goes to the UVa LDAP server.
If there is a match, the PHP backend sends a text string back to the web page like:

Richard,Taylor,Gregory,989-8857

The Javascript that sent the request parses the text and fills in the four fields.

Valid UVa Email ID:

First
Middle
Last
Office Phone

JS source
PHP Source If you are using Internet Explorer, you will have to click on this link and then click on View->Source

Suggested Readings: