Esta modificación le hice yo, lo cual al imprimirlo en otra página con la función print_r($_POST) me muestra el resultado como debe ser, pero la duda me surge en cómo le digo al archivo que inserta los datos a mysql que el nombre real del campo es c1 y no el ID del estudiante.
Código PHP:
Ver original<?php
require("config/config.inc.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<body>
<?php
$rows=mysql_query("SELECT * FROM calificaciones ORDER BY estudiante ASC"); ?>
<form action="action_c1.php" method="post" name="form1" id="form1">
<table>
<tr>
<th>
Estudiante
</th>
<th>
C1
</th>
</tr>
<?php
$identifier=$row['ID'];
?>
<tr>
<td><?php echo $row['estudiante'];?></td>
<td><input type="text" name="<?php echo $identifier ?>" id="c1" value="" maxlength="3" style="font-family:Verdana, Geneva, sans-serif; font-size: 7pt; text-align: center" size="3" /></td>
</tr>
<?php
}
?>
<tr>
<td colspan="2">
<input type="submit" value="Grabar" />
</td>
</tr>
</table>
</form>
</body>
</html>