1. Aarron Walter

  2. Getting Started/Further With Ajax and PHP

    Beginning Ajax with PHP: From Novice to Professional (Pro)There are some good books on the market to help introduce you to the ways in which Ajax and PHP can work together to create user-friendly web applications. Apress recently released a book by Lee Babin entitled Beginning Ajax with PHP: From Novice to Professional. The book does a good job of introducing key concepts by way of useful examples that solve common problems. It’s currently my favorite for bridging the gap between the two technologies.

    SitePoint also has a nice book on Ajax entitled Build Your Own Ajax Web Applications. This book is focused specifically on Ajax, not so much about connecting client-side to server-side scripts.

  3. Use AJAX and PHP to Build your Mailing List

    SitePoint.com has published my article entitled Use AJAX and PHP to Build your Mailing List, which walks you through the development of a simple system that allows your visitors to sign up for a mailing list stored in a MySQL database without having to refresh or leave the page. I use Prototype to send an Ajax call to a PHP script to store the address and return a success or failure message to the HTML page. It’s a very simple approach, but you’ll need to know a bit about PHP and JavaScript to grasp the details. A working example of the script is included to help illustrate how it works.

    A very useful improvement to this script would be to tie into a mailing list management system via an API, which would allow you to store addresses to a system where you can later send HTML emails to your audience and track views, clicks and other important data. The system I use is Mail Chimp, which has a nice PHP class that makes tying into their API easy.