I am trying to call a PHP function from an external PHP file into a JavaScript script. My code is different and large, so I am writing a sample code here.
This is m
If you actually want to send data to a php script for example you can do this:
The php:
Js (using jquery):
$.post("/path/to/above.php", {a: something, b: something}, function(data){ $('#somediv').html(data); });