Измените свой код на этот, замените ваш =
на :
и замените ;
на ,
в вашем вызове ajax.
function funcSuccess (data) {
$("#comment_ajax").text(data);
}
function funcBefore (){
$("#comment_ajax").text("Loading comment...");
}
$(document).ready(function(){
$("#make_comment").bind("click", function () {
event.preventDefault();
$.ajax({
post: $("#c_post_id").val(),
user: $("#c_user_id").val(),
text: $("#c_text").val(),
url: "write_comment.php",
type: "POST",
data: {c_post_id: post, c_user_id:user, c_text:text},
dataType: "html",
beforeSend: funcBefore,
success: funcSuccess
});
});
});