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

后端 未结 5 951
遇见更好的自我
遇见更好的自我 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:45

    First
    Second

    In my php code you can see that the function of isset() that set that when your PHP code run. In your code you mention $radioVal = $_POST["MyRadio"]; where MyRadio is undefined index for PHP. Here when we submit the form then submit call the PHP code without any lag and you also use the double form. This is wrong for this code.

        
    

提交回复
热议问题