how to get value of radio button from html form using php code example
Example 1: How to Get Radio Button Value in PHP Without Submit
$('input[type=radio]').click(function(e) {
var gender = $(this).val();
$('.result').html(gender);
});
Example 2: php code to submit a radio button value using onclick function
Foo:
<input type='radio' name='foo' value='bar'> Bar <br>
<input type='radio' name='foo' value='fru'> Fru