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..
code for creating those textboxes
$i=0;
while($data=mysql_fetch_array( $sql ))
{
echo "<tr><td>".$data['idno']." </td><td>".$data['name'] . " </td><td>
<input type='text' name='obtmarks".$i."'></td></tr>"; $i++;
}
I have to retrieve that data n place it another table
code for retrieving the data
$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++; }
Please help me.. thank u in advance..