I have a file called myfunctions.php where I have a lot of functions, like
function sendForm(){
//save form
}
function fn2(){
//do something
}
// Other functions ...
and the jquery code,
$.ajax({
url: "myfunctions.php",
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: {key1: "value1", key2: "value2", key3: "value3"},
complete: function(){
//completado
alert("complete");
}
});
I need call specific function in this file; for example sendForm()
. How can I do that?