I am trying to post a nested radio button with different field name and I have tried all I can, but I have not been successfull.
<form id="w0" class="form-vertical" action="" method="post">
    <input type="hidden" name="_csrf" value="">
    <label>Choose If you are human</label> 
        <div class="radio">
            <label>
                <input type="radio" name="name1" value="1">
                <h4> Gender:    
                    <input type="radio" name="male" value="m">Male
                    <input type="radio" name="gender" value="f">Female
                </h4>
            </label>
       </div>
   <hr>
</div>
<div class="help-block"></div>
</div><br>
<div class="form-group">
    <button type="submit" class="btn btn success">Submit</button>
</div>
</form>
<?php
if(isset($_POST['name1']) && isset($_POST['gender'])){
    $model->name = $_POST['name1'];
    $model->gender= $_POST['gender'];
    $model->save();
}
