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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -