Handling form inside header template file |
06-10-2017, 09:17 AM
(This post was last modified: 06-10-2017, 09:17 AM by natanfelles. Edit Reason: . ) (06-09-2017, 03:29 PM)CreativeMess Wrote: Hey, I'm new to CodeIgniter and loving the framework so far however have a coding question that I've been stumped on today. If do you want to redirect back after form validation errors, you can save the errors in a session as Flashdata and show it in the previous page. Also you can use some javascript validation library in the frontend as bootstrap-validator to use in the client side. After you can send the post data with Ajax and validate the errors in the server side and show it in the same page. This way you will not have to go and back from the main login page. |
Messages In This Thread |
Handling form inside header template file - by CreativeMess - 06-09-2017, 03:29 PM
RE: Handling form inside header template file - by natanfelles - 06-10-2017, 09:17 AM
|