Form validation with redirect |
(10-28-2015, 02:39 AM)msheath Wrote: Thanks for that. I have used your flashdata solution successfully. The only issue is that the flashdata variable is passed as a string and I want it to be an array so that I can show each error individually. Fortunately this is easily done using a separator parameter of '/n'. Of course I can't use the codeigniter function form_errors() but that isn't a problem. Although this works fine, it may still not be the best solution I suspect. I am glad that helped you somehow. You're welcome. I agree to what you mentioned here, Quote:Although this works fine, it may still not be the best solution I suspect.For me, I still need to study about flashdata and whats the use of this in our codeigniter projects. For my side I commonly use this kind of codes below to implement error messages reporting/notifications, Controller part, PHP Code: Code: // intended for errors, titles etc. Code: Code: <?php if($hasError) { // check if has error ?> Thank you. -joseph.dicdican
Joseph K. Dicdican
Softshore Global Solutions Inc. | Junior Web Developer Intern Passerelles numériques Philippines | Scholar [email protected] |
Welcome Guest, Not a member yet? Register Sign In |