Radio button post data of multiple input fields

前端 未结 4 907
半阙折子戏
半阙折子戏 2021-01-28 00:18

I have a form in my PHP page which is created by a loop through an array.

echo \'
4条回答
  •  独厮守ぢ
    2021-01-28 00:46

    Radio buttons should all use the same name. Only the selected radio button value is submitted:

    
    

    then:

    $size = $_POST['Radiosize'];
    

    There is no need to look at it as an array - it isn't submitted as one. Radio Buttons are not like checkboxes in form processing.

提交回复
热议问题