How can i do autopostback with form_select or form_radio |
Hi everyone, i'm started to learn php and codeigniter so i hope you can help me? Example, value of form_select or form_radio load from database and i want when i choose or select and other radio or select will change
There is no form_select (none that I know of...)
Assuming you have a form select named status, and this status has 3 or more statuses, you write something like this: form_dropdown('status', $statuses, set_select('status', $database_value), 'class="form-control"'); ...where $statuses are the options (as array) $database_value is the value you take from your database. The same goes with the radio button. The best thing is you have a great manual on this subject on the codeigniter site: http://www.codeigniter.com/user_guide/he...elper.html Website: http://avenir.ro
|
Welcome Guest, Not a member yet? Register Sign In |