title: Why doesn't set_value() work with foo[bar][x][lorem] array inputs?
body: <p>So let's say i have a form where the user can add as many dogs as they want by pressing a <code>+</code> button.</p>
  
  <p>The form is like:</p>
  
  <p></p>
  
  <pre><code>Dog #1 &lt;br/&gt;
  &lt;input name="house[dogs][][name]" value="&lt;?=set_value('house[dogs][0][name'])?&gt;"/&gt;
  &lt;input name="house[dogs][][age]" value="&lt;?=set_value('house[dogs][0][age]')?&gt;" /&gt;
  
  Dog #2 &lt;br/&gt;
  &lt;input name="house[dogs][][name]" value="&lt;?=set_value('house[dogs][1][name'])?&gt;"/&gt;
  &lt;input name="house[dogs][][age]" value="&lt;?=set_value('house[dogs][1][age]')?&gt;" /&gt;
  </code></pre>
  
  <p>On CodeIgniter, I run a form validation in order for <code>set_value()</code> to work as well:</p>
  
  <pre><code>$house = $this-&gt;input-&gt;post('house');
  $dogs  = $house['dogs'];
  
  $i = 0;
  foreach($dogs AS $dog){
   $this-&gt;form_validation-&gt;set_rules("house[dogs][$i][name]", 'Dog Name', 'required');
   $this-&gt;form_validation-&gt;set_rules("house[dogs][$i][age]" , 'Dog Age' , 'required');
   $i++;
  }
  </code></pre>
  
  <p>This whole thing doesn't work, How to make <code>set_value()</code> support array inputs like that?</p>
  
  <p>Thanks in advance.</p>