php - Codeigniter radio buttons -
I have a codeigner project and my view file is in the radio button selection.
If anyone has an idea that the controller knows that the latch button is selected?
Thank you
You must use it for all radio buttons named Like:
& lt; Input type = "radio" name = "radio_sex" id = "radmale" class = "css-checkbox" value = "male" /> & Lt; Input type = "radio" name = "radio_sex" id = "radfemale" class = "css-checkbox" value = "female" />
Now with the controller, you can easily get the value of selected radio button using the following code:
$ this-> input-> gt; ; Post 'radio_sex');
Everything.
Comments
Post a Comment