Welcome Guest, Not a member yet? Register   Sign In
Help - Validate & Repopulate a Dropdown?
#3

[eluser]hawthornpublications[/eluser]
Here is a more detailed explanation.

View File

Code:
// Set menu options

$fruit_options = array(
'bananas' = 'Fresh Bananas',
'apples' = 'Delicious Apples',
'oranges' = 'Juicy Oranges'
);

// Create the form drop down

<?= form_dropdown('fruit', $fruit_options, $this->validation->fruit); ?>

Controller
Code:
$fields['fruit'] = "Fruit Options";
$this->validation->set_fields($fields);


Messages In This Thread
Help - Validate & Repopulate a Dropdown? - by El Forum - 08-07-2008, 12:23 PM
Help - Validate & Repopulate a Dropdown? - by El Forum - 08-07-2008, 12:36 PM
Help - Validate & Repopulate a Dropdown? - by El Forum - 08-18-2008, 01:09 PM
Help - Validate & Repopulate a Dropdown? - by El Forum - 08-18-2008, 01:44 PM
Help - Validate & Repopulate a Dropdown? - by El Forum - 08-18-2008, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB