title: How to parse posted value?
body: <p>I have the following code:</p>
  
  <pre><code>&lt;input type="checkbox" name="pay[]"  value="
                 &lt;?php 
                           echo $invoiceArr[$record_count].";";
                           echo $TotalArr[$record_count].";";
                           echo $amount_dueArr[$record_count];
                    ?&gt;
                    " onClick="checkTotal()"/&gt;
  </code></pre>
  
  <p>How can I parse:</p>
  
  <pre><code>       echo $invoiceArr[$record_count].";";
         echo $TotalArr[$record_count].";";
         echo $amount_dueArr[$record_count];
  </code></pre>
  
  <p>When the form is being submited with POST?</p>
  
  <p>Many thanks</p>
  
  <p>How can I get only one element </p>
  
  <pre><code>   echo $amount_dueArr[$record_count];
  </code></pre>
  
  <p>and pass it into :</p>
  
  <pre><code>var elements = document.getElementsByName("pay[]");
  </code></pre>
  
  <p>Thanks mates</p>