I need to populate the drop down from a directory for which I am using:
$dir = 'public/files/';
$files = scandir ($dir);
echo form_dropdown('myid', $files);
It works fine but how can I get the selected item from the menu? I have tried using:
$selected=$this->input->post('myid');
But it does not work. Please help.Thank you.
valuesattribute set?