CodeIgniter Forums

Full Version: Form Validation Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi , everyone 

I am new to codigniter, I am facing some problem with form validation. 


http://prntscr.com/ayfv61

Thanks.
What I understand from the screenshot is that you have two forms in one page and while showing errors of one form, the error displayed on both forms.

I guess you are using the function validation_errors() for showing error. I suggest you to use form_error() function to show individual field error using their name attribute.

Here is the link to documentation of this function.
https://www.codeigniter.com/userguide3/h...form_error
@raghavgarg

Thanks