• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to repopulate select box after form submit

#1
[eluser]term25[/eluser]
I have this in my view:

Code:
$options = array(
  'first'  => 'First option',
  'second'    => 'Second option',
  'third'   => 'Third option',
);

echo form_dropdown('what', $options, 'third');

And now always the third option is shown when the fields are repopulating after submit validation error.

I can repopulate input fileds but I am unable to repopulate select dropdown boxes.

How to repopulate them after submit?

I do not want that user get back when he had make a mistake and everything he chose in dropdown selectboxes is missing and he has to set it again.

Thanks in advance for any help.


Messages In This Thread
Unable to repopulate select box after form submit - by El Forum - 10-09-2011, 02:11 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.