title: Codeigniter Form Helper Duplicate from_hidden?
body: <p>Im totally stumped.. Im creating some form elements using the CI form helper and for some weird reason, its creating a duplicate version. </p>
  
  <p>Here is my PHP</p>
  
  <pre><code>
  &lt;div id=&quot;receiveInventoryItemDetails&quot;&gt;
  
          &lt;p&gt;&lt;?php echo form_open('#', array(&quot;class&quot; =&gt; &quot;nyroModal form label-inline&quot;));?&gt;&lt;/p&gt;
  
          &lt;?php echo form_hidden('item_id', '', &quot;readonly = true&quot;); ?&gt;
          &lt;?php echo form_hidden('purchase_order_id', '', &quot;readonly = true&quot;); ?&gt;
  
          &lt;p&gt;&lt;?php echo form_label('Item Name', 'item_name');?&gt;&lt;?php echo form_input('item_name', '', &quot;readonly = true&quot;); ?&gt;&lt;/p&gt;
  
          &lt;p&gt;&lt;?php echo form_label('Item QTY', 'item_qty');?&gt;&lt;?php echo form_input('item_qty', ''); ?&gt;&lt;/p&gt;
          &lt;?php echo form_close();?&gt;
  &lt;/div&gt;
  &lt;div class=&quot;buttonrow&quot;&gt;
      &lt;button class=&quot;btn-sec&quot; onclick=&quot;inventoryC.receiveSubmitItem();&quot;&gt;&lt;span&gt;Add To Inventory&lt;/span&gt;&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is the HTML output</p>
  
  <pre><code>
  &lt;div id=&quot;receiveInventoryItemDetails&quot;&gt;
  
      &lt;p&gt;&lt;form action=&quot;https://mysite.com/#.abl&quot; method=&quot;post&quot; accept-charset=&quot;utf-8&quot; class=&quot;nyroModal form label-inline&quot;&gt;&lt;/p&gt;
  
      &lt;input type=&quot;hidden&quot; name=&quot;item_id&quot; value=&quot;&quot; /&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;item_id&quot; value=&quot;&quot; /&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;purchase_order_id&quot; value=&quot;&quot; /&gt;
  
      &lt;p&gt;&lt;label for=&quot;item_name&quot;&gt;Item Name&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;item_name&quot; value=&quot;&quot; readonly = true /&gt;&lt;/p&gt;
  
      &lt;p&gt;&lt;label for=&quot;item_qty&quot;&gt;Item QTY&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;item_qty&quot; value=&quot;&quot;  /&gt;&lt;/p&gt;
      &lt;/form&gt;                             
  &lt;/div&gt;
  &lt;div class=&quot;buttonrow&quot;&gt;
      &lt;button class=&quot;btn-sec&quot; onclick=&quot;inventoryC.receiveSubmitItem();&quot;&gt;&lt;span&gt;Add To Inventory&lt;/span&gt;&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>