Wednesday 30 November 2011

Ajax-enabled newsletter opt-in form for PHP, mySQL

This is an example of a newsletter opt-in form using Ajax (based on the Prototype JavaScript framework), PHP and mySQL. It is a form that you can place at your web site and ask visitors to subscribe to your mailing list. The nice features about it are: validation and saving of user data (email & name) without refreshing the page. The validation errors and the confirmation message are displayed inline (without using pop-ups or alerts). it also displays a loading (please wait) image. You can try it live at the demo. The code includes a complete example of how to save the user's name and email to a mySQL database (sample table script included) or alternatively to a plain text file. It is free to download and use. Works with all modern browsers. All code is well commented, written simply and analytically so even novice users can easily adapt it. For installation/configuration/licensing refer to the ReadMe.html inside the package.

http://www.designerfreesolutions.com/resources/ajaxsignup_php/default.php

No comments:

Post a Comment