} } else { echo '<script language="javascript">alert("La identificacion debe ser numúrica"); window.location="agregarAspirante.php"; </script>'; } // Aspirante::insertarImagen($data, $tipo); exit; break; case "eliminar": $id = $_REQUEST['id']; $mensaje = Aspirante::eliminar_aspirante($id); header('Location:../gestiones/gestionAraspirante.php'); exit; break; case "resultados": $id = $_REQUEST['id']; $mensaje = Aspirante::eliminar_aspirante($id); header('Location:../gestiones/gestionAraspirante.php'); exit; break; case "Modificar": /** * accion de modificar el aspirante */ $foto = $_FILES['foto']['name']; $identificacion_actual = $_POST['txt_identificacion']; $identificacion_nueva = $_POST['txt_nueva_identificacion']; $nombres = $_POST['txt_nombres']; $apellidos = $_POST['txt_apellidos']; $fecha_nacimiento = $_POST['txt_nacimiento']; $lugar_nacimiento = $_POST['txt_lugarnacimiento']; $genero = $_POST['genero'];