Am new in php, so please explain me this code,I want to call a Php function using this code,is it possible,and my function name is remove_db();(no parameters) , What is the myphpscript.php? Please explain.
<script type="text/javascript" src="./jquery-1.4.2.js"></script>
<script type="text/javascript">
function compute() {
var params="session=123";
$.post('myphpscript.php',params,function(data) {
alert(data); //for testing if data is being fetched
var myObject = eval('(' + data + ')');
document.getElementById("result").value = myObject(addend_1,addend_2);
});
}
</script>