Call php function with input button

Hi everyone,

I am very confused.

I have a button and i cannot call a php function onClick unless it is a submit type button.

I even use if(!isset($_POST[‘button name’]){} and if(isset($_POST[‘button name’]){}.
It sees the first !isset but when it comes to isset (the second one), it does not even g thru it. Once again, my button must be of a submit type.

Is there a way of calling a php function from a normal button because i dont want to submit my form untill it has gone thru my php function first.

Please does anybody have any suggestion.

Regards.

Jerome