Can we call a php function on html buttons onClick event? if yes, how? i really had a hard time solving this.here is my code:
<?php
function store_func($param){
//some code here
}
?>
...
<?php
...
echo '<td> <input name="edit" type="submit" id="edit" value="EDIT" onClick="store_func($param);"/></td></tr>';
...
?>
it doesnt execute the code inside the php function. pls help me.thanks in advance.