title: Passing table data with post variables
body: <p>Basically I have a table with a bunch of numbers coming from a database with columns for totals/subtotals. I do not intend to add any of the totals to the database, but I need to pass the total numbers from one page to the next. I can't seem to properly pass them as post variables using PHP... I'm wondering if this is a bad tactic firstly, secondly what should I do instead? </p>
  
  <p>And if this is possible, how would I go about doing it? I haven't been able to derive the text between the &lt; td >'s from using $_POST['tdname'].</p>
  
  <p>Example code:</p>
  
  <pre><code>&lt;form method="POST" action="newcivilreport2.php"&gt;
  
              &lt;div style="width:800px;text-align:left;margin:0 auto;padding-bottom:5px;"&gt;A. PENDING BALANCE&lt;/div&gt;
              &lt;table border="1" style="width:800px;" ID="tableA"&gt;
              &lt;th style="width:40%;"&gt;&lt;/th&gt;
              &lt;th style="width:15%;"&gt;Civil&lt;/th&gt;
              &lt;th style="width:15%;"&gt;Asbestos&lt;/th&gt;
              &lt;th style="width:15%;"&gt;Domestic&lt;/th&gt;
              &lt;th style="width:15%;"&gt;Total&lt;/th&gt;
              &lt;tr&gt;
              &lt;td&gt;1. Pending Balance from Previous Month&lt;/td&gt;
              &lt;td id="PendingCivil" name="PendingCivil"&gt;66&lt;/td&gt;
              &lt;td id="PendingAsbestos"&gt;0&lt;/td&gt;
              &lt;td id="PendingDomestic"&gt;0&lt;/td&gt;
              &lt;td id="PendingTotal"&gt;0&lt;/td&gt;
              &lt;/tr&gt;
              &lt;/table&gt; 
  &lt;input type="submit" value="Save and Continue --&gt;"&gt;&lt;/form&gt;&lt;/div&gt;
  </code></pre>
  
  <p>newcivilreport2.php:</p>
  
  <pre><code>&lt;?php
      $_POST['PendingCivil'];
  ?&gt;
  </code></pre>