News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
Creating a Dynamic Poll with jQuery and PHP
July 25, 2008 @ 10:22:05

The NETTUTS.com website has a new tutorial posted that combines PHP and AJAX (using the the jQuery library specifically) to create a simple dynamic poll.

When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. In this tutorial we'll create a poll using PHP and XHTML, then make use of some jQuery Ajax effects to eliminate the need for a page refresh, and to give it a nice little bit of animation.

The PHP handles defining the question, answers and the functionality to load, submit and return the current results (number of votes) back to the javascript. The communication between the PHP and javascript is a JSON message made simple thanks to PHP's json_encode function.

You can download the source or check out a live demo to see how it all fits together.

0 comments voice your opinion now!
jquery javascript json poll dynamic demo download tutorial


blog comments powered by Disqus

Similar Posts

Rob Allen's Blog: ID!=id (Zend Framework Tutorial Updates)

IBM developerWorks: Intro to MVC Programming with Agavi, Part 1: Open a whole new world with Agavi

Community News: Visustin v4 Automates PHP Flowcharting and UML Diagramming

Pablo Viquez's Blog: Zend_Log, FirePHP and Zend_Application. How to

TechTarget.com: Our Favorite Cheat Sheets


Community Events





Don't see your event here?
Let us know!


version framework community laravel podcast artisanfiles interview opinion tool list voicesoftheelephpant security series conference composer introduction language release symfony library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework