I\'ve created a basic website that requires the user to select a radio button. I want a PHP file to retrieve the value of the radio button that was chosen and respond accordingl
You are using two separate forms for the html code, which means the first form is actually not submitted when you press the button.
You shouldn't need to change the PHP code in result.php, but you should ideally use one form.
result.php
First //This one is automatically checked when the user opens the page Second //This button opens Result.php