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:
Building a 5 Star Rating System with jQuery, AJAX and PHP
May 05, 2010 @ 09:09:02

On the NETTUTS.com site there's new tutorial showing you how to combine the power of PHP and jQuery to create a quick and easy star rating system for your web application.

In this tutorial, you'll learn how to build a rating system with AJAX, PHP, and jQuery. Votes will be recorded and updated in real-time with the magic of AJAX, and we'll also leverage the power of PHP so that you don't even need a database!

The Ajax portion of the script is handled by a "$.post" request made from jQuery to the PHP backend when a star is clicked. Once the message is sent to the PHP backend, the information is serialized and pushed into a text file. This method can easily be modified to work with a database too.

0 comments voice your opinion now!
tutorial rating system star ajax


blog comments powered by Disqus

Similar Posts

Zend: Zend Framework Database Access Webinar (Oct 31st, 2007)

The Bakery: Four New Articles - Load Balancing, Request Info, UUID Behavior & Upload Thumbnails

DevChix: Getting started with YUI's Connection Manager in Rails and PHP

Christian Schaefer's Blog: Using PHP Web Scraper Goutte in a Console Task in a Silex project

PHPMaster.com: Implementing a Unit of Work - Handling Domain Objects through a Transactional Model


Community Events

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


php7 example framework language part2 community api symfony2 application composer opinion introduction laravel conference podcast series performance interview release configure

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