How to assign different names for each text box when placed in a loop in php..?
<p>I had generated few textboxes in a loop n named them differntly.. but the retrieving of data from those boxes is not working.. Please help me..</p>

<p>code for creating those textboxes</p>

<pre><code>$i=0;  
while($data=mysql_fetch_array( $sql ))
   { 
       echo "&lt;tr&gt;&lt;td&gt;".$data['idno']." &lt;/td&gt;&lt;td&gt;".$data['name'] . " &lt;/td&gt;&lt;td&gt;
       &lt;input type='text' name='obtmarks".$i."'&gt;&lt;/td&gt;&lt;/tr&gt;";  $i++; 
   }
</code></pre>

<p>I have to retrieve that data n place it another table</p>

<p>code for retrieving the data</p>

<pre><code>$i=0;


while($data=mysql_fetch_array( $sql1 )) 
 { 

    $as=mysql_query("INSERT INTO marks values('".$data['idno']."','".$data['name']."','".mysql_real_escape_string($_POST['obtmarks".$i."'])."')");
 $i++;  }
</code></pre>

<p>Please help me.. thank u in advance..</p>
