title: Array in Codeigniter
body: <p>I had simple key in the <strong>totalwithouttax</strong> with 3000, <strong>totaltax</strong> with 10 and <strong>totalamtincltax</strong> with 2000 in my interface.
  And I had echo the array, the <strong>totaltax</strong> and <strong>totalamtincltax</strong> echo the right value that I key in, But <strong>totalwithouttax</strong> echo 1000 only and data inserted in database is 1.000000.</p>
  
  <p>Please help me. Thank You.</p>
  
  <p>Controller:</p>
  
  <pre><code>    $custTd = $post['id'];
      $custMame = $post['name'];
      $custEmail = $post['email'];
      $custAddr = $post['address'];;
      $custTel = $post['telno'];
      $remarks = $post['remark'];
      $paymentOption = $post['options'];
      $promoCode = $post['promo_code'];
  
      $arraySize = count($post['totalwithouttax']);
      for($i=0; $i&lt;$arraySize; $i++){
  
      $totalWithoutTax = $post['totalwithouttax'][$i]; //$post['totalwithouttax'];
      $totalTax = $post['totaltax'][$i]; //$post['totaltax'];
      $totalAmtInclTax = $post['totalamtincltax'][$i];//$post['totalamtincltax'];
  
      //MASSAGE DATA TO BE INSERTED TO ARRAY
      $orderHeader = array(
                                      'user_id' =&gt;  $custTd,
                                      'status' =&gt;  1,
                                      'cust_name' =&gt;  $custMame,
                                      'cust_email' =&gt;  $custEmail,
                                      'cust_addr' =&gt;  $custAddr,
                                      'cust_tel' =&gt;  $custTel,
                                      'remarks' =&gt;  $remarks,
                                      'pay_option' =&gt;  $paymentOption,
  
                                      'total_without_tax' =&gt;  $totalWithoutTax,
                                      'total_tax' =&gt;  $totalTax,                              'total_amt_incl_tax' =&gt;  $totalAmtInclTax,
                                      'epp_first_payment' =&gt;  $eppFirstPayment,
  
                                    );
  
      //INSERT ORDER HEADER
      $orderHeaderId = $this-&gt;order-&gt;InsertOrderHeader($orderHeader);
  </code></pre>
  
  <p>view:</p>
  
  <pre><code>&lt;tr class="item-details"&gt;
                          &lt;td&gt;&lt;span class="rowNumber"&gt;1&lt;/span&gt;&lt;/td&gt;
                           &lt;td class=""&gt;
                          &lt;?php
                          $options = array(
                                           '' =&gt; '~Choose An Item~'
                                           );
                          foreach ($item as $rows){
                              $options[$rows-&gt;id] = $rows-&gt;item_name;
                          }
  
                          $select = array(
  
                                          'id' =&gt; 'item_id',
                                          'class' =&gt; 'form-control'
                                          );
                          echo form_dropdown('item_id[]', $options,set_value('item_name'),$select);
                          ?&gt;
                          &lt;/td&gt;
                          &lt;td class=""&gt;&lt;input type="number" class="item-qty" name="qty[]" min="0.00" /&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;input type="number" name="weight[]" class="weight" step="any" /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="number" name="transportation[]" class="transporation" step="any" /&gt;&lt;/td&gt;
              &lt;td&gt;&lt;input type="text" id="gp[]" name="gp[]" value="" /&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;input type="text" id="discount[]" name="discount[]" value=""/&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;input type="text" id="unit_price[]" name="unit_price[]" value="" /&gt;&lt;/td&gt;
                          &lt;td align="right"&gt;
              &lt;input type="text" id="totalwithouttax" name="totalwithouttax[]" value=""&gt;
              &lt;/td&gt;
              &lt;td align="right"&gt;
              &lt;input type="text" id="totaltax" name="totaltax[]" value=""&gt;
              &lt;/td&gt;
              &lt;td align="right"&gt;
              &lt;input type="text" id="totalamtincltax" name="totalamtincltax[]" value=""&gt;
              &lt;/td&gt;
                       &lt;/tr&gt;&lt;br/&gt;
  </code></pre>