it is possible to call PHP function using HTML element as call to JavaScript function, as
<?php
function fname() { code to be excuted }
?>
<input type="button" value="call php function" onclick="fname()" />
I tried what is written but it was not successful.