este es el codigo :
Código PHP:
<?php
include "conexion2.php";
$query="update alumno set seccion='$_POST[checkbox]' where cedula = '$_POST[cedula]'";
$rs = mysql_query($query);
echo '<center>Se A asignado una seccion al alumno</center>';
//condicional si no hya ningun valor
$sql="Select id,nombrea
while ($row = mysql_fetch_array($result)){
?>
<form action=admin.php method=post>
<TD colspan="2" valign="top"> </TD><tr><td height="23" colspan="2" width="200">Nombre y apellido :</td><td width="200"><b><?php echo $row["nombrea"]?> <b><?php echo $row["apellido"]?></td><tr>
<td height="23" colspan="2">Sexo :</td><td><b><?php echo$row["sexo"]?></td><tr>
<td height="23" colspan="2">Edad</td><td><b><?php echo $row["edad"]?></td><tr>
</td><td><input type=Submit " name="b" value="Editar"></form></td></table><br><br>
saludos