it helps some times Try this it will work : Unchecked radio elements are not submitted as they are not considered as successful. So you have to check if they are sent using the isset or empty function.
Any of those help This is kinda tricky. If the radio button is toggled, it appears in $_POST. If it isn't toggled, it does not get submitted and therefore isn't in $_POST. The same thing is true with checkboxes.
set $_POST value when radio button is selected
By : realsecure
Date : March 29 2020, 07:55 AM
Does that help PHP's standard form parsing system (which populates $_POST) can't handle multiple bits of form data with the same name (unless that name ends with the characters ). Change the name of the submit button.