I am getting the values from HTML form through JavaScript and I am trying to call the PHP functions which takes arguments through AJAX. But I am not able to get it done. How can I do this?
PHP code:
<?php
function updateJbdesc($jobdesc,$loginid)
{
// some code
}
?>
Ajax Code:
$.ajax({ url: 'allfunctions.php',
data: {action: 'updateJbdesc'},
type: 'post',
success: function(output) {
alert(output);
}
});
How can I pass arguments to PHP function through AJAX?