开发者

How to get group radio button Value using Code ingnitor in the controller

I have two radio button

<input tabindex="3" type="radio" name="gender" id="gender" value="M">Male&nbsp;<input tabindex="4" type="radio" name="gender" id="gender" value="F">Female

How to get group radio button Value using Code ingnitor

$this-&开发者_运维问答gt;input->post("gender");

I want to retrieve selected radio button value as "M" or "F" In the controller side.


<input tabindex="3" type="radio" name="gender[]" id="gender" value="M">Male
<input tabindex="4" type="radio" name="gender[]" id="gender" value="F">Female

$this->input->post('gender')

Thanks Sanil

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜