![]() |
Problem with form validation and view data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with form validation and view data (/showthread.php?tid=39282) |
Problem with form validation and view data - El Forum - 03-06-2011 [eluser]tatacarrera[/eluser] Well this is my first post in this forum, so here it goes: I have something like this Code: function user() { the two functions getCategoriesArray and getPostArray returns arrays for using the 'form_dropdown()' function in the 'creation_form' view, at the first page load, everything is fine, but when I input some bad data, the 'creation_form' is intended for reload but the data passed to the view dissapears. This result into a 'form_dropdown' error because the system can't locate the variables $categories and $posts It's not posible to pass some variables twice into a form? Problem with form validation and view data - El Forum - 03-06-2011 [eluser]tatacarrera[/eluser] i had a problem with the form action. I was redirecting the action to another view that was equal to the other. Problem with form validation and view data - El Forum - 03-07-2011 [eluser]vikascoollives[/eluser] Can you give the sample code of view where you have used those variables so that i get how you are using the variables in the view. |