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

NETTUTS.com:
Asynchronous Comments with PHP, jQuery, and JSON
Feb 23, 2009 @ 18:52:35

The NETTUS.com site has a new tutorial posted today looking at the combination of PHP, jQuery and the JSON format for messages to create a "more web 2.0" version of the traditional comment form.

In this article, we’re going to look at how we create a simple but effective means of capturing and displaying visitor comments using a blend of jQuery, PHP and JSON. In the public forum that is the blogosphere, the ability to capture and display visitor comments on your blogs can give you instant feedback and opinions from the people that matter most – those that read your blog.

Their script (check out the demo here) acts as an interface between a MySQL database and the HTML front end. Both the display and submission of the comments are handled by Javascript with the submission being handled by the ajax method in jQuery.

You can also download the source here.

tagged: tutorial jquery mysql asynchronous comments json database

Link:


Trending Topics: