When you combine some neat functionality courtesy of PHP with the cleverness of jQuery you can produce some pretty cool results. NETTUTS has published a tutorial (Creating a Dynamic Poll with jQuery and PHP) for creating 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.
Requirements:-
Demo: http://nettuts.com/demos/test_poll/
License: License Free




[...] NETTUTS | Creating a Dynamic Poll with jQuery and PHP Link:WebAppers | Creating a Dynamic Poll with jQuery and PHP Posts [...]
certainly,
nettuts.com rocks
don’t work… doesn’t update votes, always shows the same result.. seen that other pepople have the same problem, no solution yet
don’t work… doesn’t update votes, always shows the same result.. seen that other pepople have the same problem, no solution yet
Grt
For everyone out there uploading this thing and having the votes not logged:
Replace:
$id = $_GET['vote'] || $_POST['vote'];
With:
$id = isset($_GET['vote']) ? $_GET['vote'] : $_POST['vote'];
and
Replace:
$id = $_GET['poll'] || $_POST['poll'];
With:
$id = isset($_GET['poll']) ? $_GET['poll'] : $_POST['poll'];
@ ArturoQ
The solution posted doesn´t works here …
Any sugestion ?
Even ArturoQ’s edit isn’t making it work for me. The vote totals don’t change.
RSS feed for comments on this post · TrackBack URI