Newsletter sign-up form with jQuery, html5, PHP, mySQL
This is an example of a newsletter opt-in form using Ajax with jQuery, 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. An alternative version using html5 validation is also included in the package. 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 and full code 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 starters can easily adapt it. For installation and configuration refer to the help file inside the package.