Answers for "simple ajax example in php"

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

Browse Popular Code Answers by Language