Is there a way to access a php class method using javascript through jquery?
- by Starx
I have a js script, which is
$("#feedbacksubmit").click(function() {
if($("#frmfeedback").valid()) {
var tname = $("#name").val();
var temail = $("#email").val();
var tphone = $("#phone").val();
var tcontent = $("#content").val();
var tsend = $(this).attr('ts');
$.post ( "bll/index.php",
{ action: 'mailfeedback', name: tname, email: temail, phone: tphone, content: tcontent, send: tsend },
function(data) {
$('.msgbox').html(data);
$("#frmfeedback")[0].reset();
});
return false;
}
});
however, I am trying to see if there is a way to access the class method of bll/index.php directly from the script, instead of posting parameters, to access it