How can I pass button id's to perform multiple actions within form

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
anandhuded2
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Feb 23, 2018 12:27 am

Fri Feb 23, 2018 1:00 am

Hi all,

In one form I have 3 buttons I want to assign button id as action to action method.

Please suggest me how can i do this?

Below is my action code.

<?=$app->action('btnCopy') ?>

<?=$csrf->protect()?>


Thanks

User avatar
benanamen
New php-forum User
New php-forum User
Posts: 53
Joined: Mon Oct 16, 2017 1:06 pm

Fri Feb 23, 2018 8:44 am

What is the REAL problem you are trying to solve. This smells like an XY Problem.
The XY Problem
The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

Post Reply