Selected button to data-request

Hi everybody! I’m new to OctoberCMS and I can’t figure out what is the right way to handle with the selected (clicked) button.
So I have a form with a data-request. The function should save the input and the selected / clicked button (made with ) to the database. Of course, only one button may be selected.

It looks like:

Button1 Button 2 Button3

How can the data-request function (on the .php page) of the form know which button has been selected / clicked ?

Thanks !

Hi and welcome @Andrei1255,

It sounds like you may want a radio HTML input. These can be made in to buttons using Bootstrap 5 checks and radios. Here’s a link: