CodeIgniter Forums
Passing Form errors in a param function - 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: Passing Form errors in a param function (/showthread.php?tid=47671)



Passing Form errors in a param function - El Forum - 12-17-2011

[eluser]Unknown[/eluser]
Hi,

When a form validation gives an error, the errors can be displayed by loading a view and passing the data. However the URL segment is reset.

For example, if the URL is index.php/admin/add/9
Then when there is errors in the form it goes to index.php/admin/add

How can I make it go to the correct url and retain the form errors?