[Solved] Remember Selected Option Value If Form Errors - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [Solved] Remember Selected Option Value If Form Errors (/showthread.php?tid=66079) |
[Solved] Remember Selected Option Value If Form Errors - wolfgang1983 - 09-02-2016 Hi, If there are any form validation error that has been triggered I would like to know if there is a way to remember the seleted option value on view so the user does not have to go through the whole list PHP Code: <?php View Code: <?php echo $header;?> RE: Remember Selected Option Value If Form Errors - wolfgang1983 - 09-02-2016 I have found the solution using set_select() Code: <div class="form-group"> |