title: Creating input field from html table that has PHP value
body: <p>I have a page full of small html tables, each representing data from a database table. This is a one page print out report, so there are quite a few fields across these html tables, but only about 4 or 5 of them may need to be changed.</p>
  
  <p>When the user chooses a record and the report is displayed, all the tables look great but I'm trying to find a way to edit and save the 4 or 5 that might need editing. I know I can create a form with inputs and turn certain table rows into inputs and then with a submit button I can attach a SQL statement to update those fields based on a primary key in the DB table.</p>
  
  <p>How can I actually get these table rows to be editable inputs within a form? I've wrapped the whole page in a form and I even tried by wrapping just one table in a form as a test but I think the problem is my syntax for the table row.</p>
  
  <p>Here is what I tried so far:</p>
  
  <pre><code>&lt;form&gt;
  &lt;table style="width:100%; border:none;
  border-collapse:collapse;"&gt;
  
      &lt;tr style="border:none;"&gt;
          &lt;th style="border:none; text-align: left;" &gt;Meter Test&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 1&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 2&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 3&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 4&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 5&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 6&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 7&lt;/th&gt;
          &lt;th style="border:none;"&gt;Test 8&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr style="border: none;" &gt;
          &lt;td style="border:none; text-align: left;"&gt;Test Rate GPM: &lt;/td&gt;
          &lt;td&gt;&lt;? echo $row['test1TestRateGPM'];?&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;&lt;? echo $row['test2TestRateGPM'];?&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;&lt;? echo $row['test3TestRateGPM'];?&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;&lt;? echo $row['test4TestRateGPM'];?&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;&lt;? echo $row['test5TestRateGPM'];?&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;&lt;? echo $row['test6TestRateGPM'];?&gt;&amp;nbsp;&lt;/td&gt;
          &lt;td&gt;&lt;input type="text" value = "&lt;?php $row['test7TestRateGPM'];?&gt;"&gt;
          &lt;td&gt;&lt;input type="text" value = "&lt;?php $row['test8TestRateGPM'];?&gt;"&gt;        &lt;/td&gt;
  
      &lt;/tr&gt;
      &lt;/table&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>You can see i have the normal html table syntax but for the field I'm testing, I tried it by creating a line of php and doing it that way, but still no form on the web page.</p>