Comment system with jQuery, PHP AND MYSQL
This time we are set to improve Comment framework without invigorating page with jquery, Ajax and Php. In this requisition we had actualized with gravatarimage. It's is helpful and basic just a few lines of code. Examine the live demo impact. javascript code. http://jquery.js $(function() { $(".submit").click(function() { var name = $("#name").val(); var email = $("#email").val(); var comment = $("#comment").val(); var dataString = 'name='+ name + '&email=' + email + '&comment=' + comment; if(name=='' || email=='' || comment=='') { alert('Please Give Valid Details'); } else { $("#flash").show(); $("#flash").fadeIn(400).html('Loading Comment...'); $.ajax({ type: "POST", url: "commentajax.php", data: dataString, cache: false, success: function(html){ $("ol#update").append(html); $("ol#update li:last").fadeIn("slow"); $("#flash").hide(); } }); }return false; }); }); C omment.php Contains HTML code here class timeline li{display:none} <ol id="update" class="timeline"> </ol> Name Email commentajax.php Contains PHP and HTML…


