Selection of countries by select from the database |
A model:
Code: <?php In a controller: Code: $this->load->helper('form'); In the corresponding view: Code: echo form_dropdown('country_code', $country_list, '' /* set_value('country_code', $country_code) */ , 'id="country_code" class="form-control required"'); This example could be simplified, bu I did not do it intentionally, for better readability. |
Messages In This Thread |
Selection of countries by select from the database - by grechca - 03-21-2018, 04:21 AM
RE: Selection of countries by select from the database - by ivantcholakov - 03-21-2018, 08:54 AM
RE: Selection of countries by select from the database - by grechca - 07-28-2018, 03:26 AM
|