How do I get the value of a radio button in PHP?

后端 未结 5 940
遇见更好的自我
遇见更好的自我 2021-02-12 14:09

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

5条回答
  •  太阳男子
    2021-02-12 14:29

    Your are using two separate forms for your general input elements and one consisting of a submit button only.

    Include the submit button in the first form and it should work fine:

    First
    //This one is automatically checked when the user opens the page Second //This button opens Result.php

提交回复
热议问题