This is a DHTML AJAX version of the asynchronous Shockwave example from my Flash notes. The same PHP code is used for both applications. This version has to run from the same server as the PHP code just to keep the XMLHttpRequest security happy. Although this is AJAX implemented using XMLHttpRequest there is no XML. View source to see how this works.