Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript call php function with parameters

var deleteClient = function(id) {
    $.ajax({
        url: 'path/to/php/file',
        type: 'POST',
        data: {id:id},
        success: function(data) {
            console.log(data); // Inspect this in your console
        }
    });
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #call #php #function #parameters
ADD COMMENT
Topic
Name
2+2 =