Run a PHP function upon button click?

前端 未结 8 1667
小鲜肉
小鲜肉 2021-01-03 04:24

I want to run a PHP function with an HTML button click.

I can call a PHP script this way:

Name
8条回答
  •  伪装坚强ぢ
    2021-01-03 04:43

    You should include a.php In action.php, For example :

    action.php :

    include( 'a.php' );
    //Your codes
    

    if you want for example ok() function in a.php, now a.php exist in action.php

提交回复
热议问题