Is it possible to call a PHP function from js file? [duplicate]

You can call any php file by the common HTTP methods, e.g. GET and POST.
What you might be looking for is AJAX. Google the term, and also look into jQuery for a simplified approach.

Leave a Comment