Save dynamically generated textfield from PHP
<p>I have a table which is being dynamically generated based on the user input, in some cases rows have a textfield and i want to save the values updated by the user in the textfield by in the MySql database. e.g:</p>

<p>Actual Code:</p>

<pre><code>echo "&lt;tr&gt;&lt;td&gt;".$sql3[0]."&lt;/td&gt;&lt;td&gt;".$row1[2]."&lt;/td&gt;
      &lt;td&gt;&lt;input type='text' class='span1' value='".$recieved."'/&gt;
      &lt;/td&gt;&lt;td&gt;".$status."&lt;/td&gt;&lt;/tr&gt;";
</code></pre>

<p>Simplified example: </p>

<pre><code>//some user input e.g Microsoft

Table: 
item             quantity      received
Windows 7          1000       'textfield'
Office 2007         200        nothing required
Windows 8          20000      'textfield'
</code></pre>

<p>Now i want to save the values entered in the textfield and update them in the database. The problem is i am not sure how to define an <code>id</code> (id of the textfield) which can be read using a javascript so that i know which textfield i am currently talking about.</p>

<p>Any suggestions would help.</p>
