title: CodeIgniter form validation, dynamically added fields
body: <p>this is my form.</p>
  
  <pre><code>&lt;div&gt;
      &lt;input type='text' name='name[1]'/&gt;
      &lt;input type='text' name='name[2]'/&gt;
      &lt;input type='text' name='name[3]'/&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;input type='text' name='email[1]'/&gt;
      &lt;input type='text' name='email[2]'/&gt;
      &lt;input type='text' name='email[3]'/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>this is my <code>codeigniter</code> code.</p>
  
  <pre><code>$validations = array();
  $validations['name'] = array(
      'field' =&gt; 'name',
      'label' =&gt; 'Support Name',
      'rules' =&gt; 'required',
  );
  $validations['email'] = array(
      'field' =&gt; 'email',
      'label' =&gt; 'Email address',
      'rules' =&gt; 'required|valid_email',
  );
  $this-&gt;form_validation-&gt;set_rules($validations);
  if ($this-&gt;form_validation-&gt;run()) {
  
  }else{
  
  }
  </code></pre>
  
  <p>but every time the validation is false how can i create validation.</p>
  
  <p>please help.</p>