Run a PHP function upon button click?

前端 未结 8 1713
小鲜肉
小鲜肉 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:28

    You need to do this on your end. Process the post and call the function in the action.php page on your own. You can also create a separate php page to call a function defined in action.php.

提交回复
热议问题