Here is my form:
<form method="post" enctype="multipart/form-data">
<input type="radio" name="sex" value="male" checked />
<input type="radio" name="sex" value"female"/>
<input type="submit" name="btn">
</form>
$_POST['sex'] = always I see the below output for the radio button:
See = string 'on'
It always gives "on" instead of male or female. This is what I have put in the form.
Am I doing something wrong here?
Please help.
If I use SELECT box, then it works well. But I need to make it work using radio button.