Be the first to write a review
Creating a Poll System with jQuery Part 2
The server-side code to store the selection made by the visitor
In part 1 of this tutorial we created the initial page and the underlying mark-up of our poll widget. We also did all of the necessary JavaScript work to obtain the visitors selection and initiate an AJAX POST request to the server. We also styled the poll widget.
In this part of the tutorial we’re going to pick up right where we left off and add all of the server-side code that we in order to store the selection made by the visitor and send the updated results back to our poll widget. We’ll be using a combination of PHP and MySql to achieve this.
Dan Wellman
Dan Wellman is an author and web developer based in the UK. Dan has written three books so far; the latest, jQuery UI 1.7: The User Interface Library for jQuery, was released at the end of 2009.
Dan has been writing web development tutorials for over 5 years and works by day for a local digital media agency in his home town of Southampton.