You use a Html button in Php on its onclick you made a function but its not responding?
this is not really a question... But I think you are asking why
php functions inside a HTML button do not work.
Well probably because php is rendered serverside and is passed
to a user-browser afterwards.... it is possible to use php inside
onclick... but only to display specific content (javascript
function for instance)... it is not possible to let a user decide
to run a specific php function by clicking a button.