Send radio box value with $_POST

前端 未结 6 1773
鱼传尺愫
鱼传尺愫 2021-01-19 11:10

How can I send a radio or checkbox value to the $_POST array even when the field is empty?

\';
            


        
6条回答
  •  梦谈多话
    2021-01-19 11:49

    Should be :

    HTML :

    Test

    PHP Code :

    if(isset($_POST['submit']))
    {
    
        echo $radio_value = $_POST["radio"];
    }
    

提交回复
热议问题