A quick question with a potentially longer discussion. What do you use for AJAX in PHP, and why?
XAJAX is a simple way to do it, and this is the approach I’ve been using for some time. In very simple terms, you write PHP methods that can be called from JavaScript by prefixing the method name with xajax_.