I’ve recently written an article for SitePoint entitled “Use Ajax and PHP to Build Your Mailing List”. The article walks readers through the process of constructing a mailing list sign up widget that makes use of the Prototype JavaScript library to send an Ajax call to a PHP script, which then stores the email address in a MySQL database. The result is a very quick, and painless mailing list sign up process requiring no page refreshing or redirects.
The article will be published later this week or next week, and will include a code archive with a completed version of the scripts.