Dear friends,
I'd like to assemble a form with some buttons, each of them with a different function. To this purpose, I'd like to use the button element plugin and not the default buttons (apply, save...).
Here my questions:
1. I'd like to associate the execution of a php code (e.g. to launch a query in the database) on the click of a button: where can I write the php code in the button-plugin?
2. let's suppose we have two or more buttons in the form: how can I distinguish, in the php code, which of them has been pressed?
Cheers,
Roberto
I'd like to assemble a form with some buttons, each of them with a different function. To this purpose, I'd like to use the button element plugin and not the default buttons (apply, save...).
Here my questions:
1. I'd like to associate the execution of a php code (e.g. to launch a query in the database) on the click of a button: where can I write the php code in the button-plugin?
2. let's suppose we have two or more buttons in the form: how can I distinguish, in the php code, which of them has been pressed?
Cheers,
Roberto