Answers for "How to call php function from ajax"

PHP
-1

How to call php function from ajax

$.ajax({ url: 'phpscriptname.php',
         data: {function2call: 'getEmployeesList', otherkey:otherdata},
         type: 'post',
         success: function(output) {
                      alert(output);
         }
});
Posted by: Guest on April-13-2020

Code answers related to "How to call php function from ajax"

Browse Popular Code Answers by Language