I was wondering if its possible to have a .php file with all the functions:
<?php
function 1(){
do something
}
function 2(){
do something
}
function 3(parameter){
do something with parameter
}
?>
and then in the javascript code, i need to call the php function like:
function someFunction(parameter){
call PHP function3(parameter)
}
I know i must use AJAX, but I can't get any example of that.
Thanks in advance.