[eluser]Wonder Woman[/eluser]
Hi there,
The set_select is not working, could anyone advise me as to what I am missing please?
view:
Code:
foreach($perspectives as $perspective) {
$options[$perspective['id']] = ucwords($perspective['perspective']);
}
echo form_dropdown('perspective', $options, set_select('perspective', $options), 'id="perspective" onchange="show_perspectives();"');
controller:
Code:
$this->form_validation->set_rules('perspective','checkboxes','required');
I'd really appreciate it if someone could help me.
Thanks