How to get value of selected radio button?

前端 未结 28 2892
温柔的废话
温柔的废话 2020-11-22 03:51

I want to get the selected value from a group of radio buttons.

Here\'s my HTML:

28条回答
  •  清歌不尽
    2020-11-22 04:35

    In php it's very easy
    html page

    Male
    Female
    Others

    Take value from form to php

    $radio=$_POST['radio'];
    use php if(isset($_POST['submit']))
    {
    echo "you selected".$radio."thank u";
    }

提交回复
热议问题