Has anyone notices any bug with FormValidator - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Has anyone notices any bug with FormValidator (/showthread.php?tid=18925) |
Has anyone notices any bug with FormValidator - El Forum - 05-22-2009 [eluser]bibstha[/eluser] I've been spending quite some time with set_value error in CodeIgniter. In my config/form_validation.php file i've set the $config variable as Code: <?php Now the actual form which contains the textarea title has other field objective. Code: <form > Now on invalid error, title is populated from the $_POST while objective isn't. I looked through the source and found out that when form_validation is loaded, it actually calls class CI_Form_validation:et_value(). But CI_Form_validation:et_value only works for values already in the validation $config variable. So the code is returning empty text. Can anyone confirm this as a bug? Or am I missing some part? Has anyone notices any bug with FormValidator - El Forum - 05-22-2009 [eluser]Evil Wizard[/eluser] The input field works different to the text are field. Code: <input name="input_tag" type="text" value="my input value" /> Code: <textarea name="objective"> |