Some code I wrote for a friend to show the basics of AJAX and PHP.