# Call php function with input button

**URL:** https://forum.kirupa.com/t/call-php-function-with-input-button/286730
**Category:** web dev
**Created:** [April 20, 2009, 11:25am UTC](https://forum.kirupa.com/t/call-php-function-with-input-button/286730 "2009-04-20T11:25:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)
#### Post date: [April 20, 2009, 11:25am UTC](https://forum.kirupa.com/t/call-php-function-with-input-button/286730/1 "2009-04-20T11:25:38Z")

</div>

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
