Ahora si que bruto no aprendo nunca
Código php:
Ver original<?php
echo '<form method="post" action="notas_2009.php" name="form_notas">
<tr>
<td width="3%"><span class="Porcentaje"><?php echo $contador++;?></span></td>
<td width="50%"><span class="Porcentaje">'.$fila[apellido_alumno]." ".$fila[nombre_alumno].'</span></td>
<td width="2%"><input name="id[]" type="hidden" value="'.$fila[id].'"></td>
<td width="2%"><input name="rut_alumno[]" type="hidden" value="'.$fila[rut_alumno].'"></td>';
$maxnota = 10;
for($i = 1; $i <= $maxnota; $i++) {
$campo = 'nota' . $i;
echo '<td width="2%"><input type="text" name="' . $campo . '[]" value="' . $fila[$campo] . '" size="3" maxlength="3" class="Porcentaje" /></td>';
}
echo '<td width="5%"><span class="Porcentaje">'.$fila["nota_sem_1"].'</span></td>
<td width="15%"></td>
</tr>';
}
echo '<tr>
<td><input name="codigo_asignatura" value="'.$_POST[codigo_asignatura].'" type="hidden"></td>
<td><input name="semestre" value="'.$_POST[semestre].'" type="hidden"></td>
<td><input name="accion" value="'.$_POST[accion].'" type="hidden"></td>
<td><input name="num_total_registros" value="'.$_POST[num_total_registros].'" type="hidden"></td>
<div align="right"><input name="enviar2" id="enviar2" type="submit" value="Enviar Notas" class="Porcentaje"></div>
</tr>
</form>
</table>';