You have to group all the radio buttons that are related.
To do that, you give them all the same
Male: <input type="radio" name="gender" value="male">
Female: <input type="radio" name="gender" value="female">
They can have different ids but they need to have the same
In your case, you would have three radio buttons with the same name, different ids and, different values.