Validating radio button checked
The solution here is to give all of the radio buttons within the group the same name but different values.
Validating Radio Button Groups By setting the value of the variable, "found_it" equal to the checked button's value, the original button loop script can easily find which button was checked. We need a way to handle this situation, especially if you want to require a button from a group be checked.
Before getting into the additional validation scripting, I want you to notice something about the found_it variable in the original script - it is declared but not initialized. Because it was not assigned a value initially, it has an original value of null, and will stay that way unless its value is reset to a checked button's value. Logical operators test two boolean values for equality.
In actual fact the setup of these fields is the most simple of all form fields to validate as radio buttons set one value that only needs to be tested when the form is submitted.
The difficulty with radio buttons is that there are at least two and usually more fields that need to be placed on the form, related together and tested as one group.