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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -