RadioButton not checked proper. |
[eluser]Rocky Mehta[/eluser]
I fetch all the data form the database. if condition true then my checkbox checked proper, but how can i radio button checked if condition true. AT line no 29 my radiobutton condition is true but not checked radio in browser Controller page: Code: function main($venue_facilities_id = 0) Code: <?php How can i checked my radiobutton when fetching data from database?
[eluser]ghst[/eluser]
If i understood you right it could be like that: Code: $checkbox_array = array('name' => 'charges', 'value' => 'free', 'checked' => $charg['checked']); Form helper functions can be found here http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]Rocky Mehta[/eluser]
Still not Working. To this this code i checked my checkbox(fetching the data from database) Code: if($query['bring']=='1') // This code working. Code: if($query['charges']=='free') //This code not checked my radio button. |
Welcome Guest, Not a member yet? Register Sign In |