Trigger PHP function by clicking HTML link

后端 未结 5 1343
耶瑟儿~
耶瑟儿~ 2020-12-21 03:04

Is it possible to trigger a PHP function by just clicking a link? Or should I stick with the form submit method? If clicking the link will work, where should the link refer

5条回答
  •  臣服心动
    2020-12-21 03:44

    I found this code in a plugin, they have user a foreach look to trigger the action:

    $actions = unset($meta[$key]);
    foreach ( $actions as $action => $value ) {
        echo '
  • ' . '
  • '; }

提交回复
热议问题