title: multiple form validation codeigniter conflict
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5802729/codeigniter-2-forms-on-one-page-validation-errors-problem">Codeigniter 2 forms on one page, validation_errors problem</a>  </p>
  </blockquote>
  
  
  
  <p>I have 2 forms in my page. I need to validate them 1 at a time but I think there is a conflict. Here take a look:</p>
  
  <p><img src="https://i.stack.imgur.com/XgzrF.png" alt="enter image description here"></p>
  
  <p>when I submit either of the form, both of them show the same error message</p>
  
  <p>I use <code>validation_errors()</code> to display the messages. How can I validate the form 1 at a time?</p>
  
  <p>Here is the code  </p>
  
  <pre><code>public function update_user_info(){ 
      $this-&gt;form_validation-&gt;set_rules("firstname","First Name","required");     
      $this-&gt;form_validation-&gt;set_rules("lastname","Last Name","required"); 
      $this-&gt;form_validation-&gt;set_rules("middlename","Middle Name","required"); 
      if($this-&gt;form_validation-&gt;run()===false){ 
          //wrong 
      } 
      else { //correct } 
  }
  </code></pre>