[eluser]phparif[/eluser]
1st)In the CI :
<select name="myselect">
<option value="small" <?php echo set_select('myselect', 'small'); ?> >Small Shirt</option>
<option value="med" <?php echo set_select('myselect', 'med'); ?> >Medium Shirt</option>
<option value="large" <?php echo set_select('myselect', 'large',TRUE); ?> >Large Shirt</option>
</select>
if an error occured, it return the value that i select before submit. But
2nd)<?php
$options = array(
'small' => 'Small Shirt',
'med' => 'Medium Shirt',
'large' => 'Large Shirt',
);
echo form_dropdown('myselect', $options, 'large');
?>
it is not return value that i select before submit. It return its default value 'Large Shirt'.
Now, How can i get dropdown value, that i select before submit by the 2nd process, as like 1st process.