Ah ya entendí el código tendría que ser asi
Código PHP:
Ver original<?php
include "conexion2.php";
if(isset($_POST["update"]) && $_POST["update"] == true){ //sentencia sql para editar datos
$query="update alumno set seccion='$_POST[checkbox]' where cedula = '$_POST[cedula]'";
echo '<center>Se A asignado una seccion al alumno</center>'; // mensaje que se a a editado con exito
}
$sql="Select id,nombrea from alumno where =$_POST[cedula]";
//aqui llena la tabla de los datos del alumno
?>
<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>
<input type="hidden" value="update" name="update" />
</td>
<td><input type=Submit " name="b" value="Editar"></form></td></table><br><br>
?>
Respeta la tabulación porfavor. je