Monday, March 23, 2009

AJAX Voting in PHP

A simple feature that many may over look is the ability to cast a vote without having to reload a page. It can be inconvient for the user, depending on what they are voting on. Maybe they are watching a video or listening to a song, in which case, they wouldn't want to reload the page because it would cause them to lose their position in the video or song.

So with the magic of some Javascript, PHP, and MySQL we will be able to let the user cast a vote and show them the updated states without interrupting whatever they may be doing on the page. In this tutorial, we will be pretending that the user is casting votes on movies.

Tutorial : http://rapidshare.com/files/212274311/AJAX_Voting_in_PHP.rar

Source Code : http://rapidshare.com/files/212274312/sourceCodeAJAXVotingInPHP.rar

No comments:

Post a Comment