2
My question is the following: Observe the following form fields:
input type="radio" name="pagto" value="A"
input type="radio" name="pagto" value="B"
input type="radio" name="pagto" value="C"
input type="radio" name="pagto" value="D"
Note that the "name" is the same and the variable is in "value", according to the default.
What I need: When you click on a radio, the form is sent. I don’t want to use the "Submit" button, I want the submission to be at the time of the radio click and ALL fields of the form to be sent.
I know that’s not your question (and that’s why I’m just commenting), but I would say that sending the form by clicking on Radio Button is a bad idea. I don’t know the details of the system you are building, but this component allows the user to make a choice that can sometimes be sufficiently important (example: what freight option to pay?) to be allowed to think about and even change the initial choice. [...]
– Luiz Vieira
[...] Moreover, traditionally this immediate submission is not the default behavior, and certainly will not be expected by most users (especially if they are newcomers to your system). Thus, you can cause more problems than facilities. I suggest not to do this, or at least evaluate this option with some users before putting it into production.
– Luiz Vieira