} ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Registro de alumno</title> </head> <body> <form action="registro.php" method="post"> <input type="text" name="matricula" id="matricula" placeholder="Matricula"> <input type="text" name="nombre" id="nombre" placeholder="Nombre"> <input type="text" name="correo" id="correo" placeholder="Correo"> <select name="carrera_id" id="carrera_id"> <?php $carrera = Carrera::lista(); ?> <?php if (is_array($carrera)) { ?> <?php foreach ($carrera as $key => $c) { ?> <option value="<?php echo $c->id; ?> "><?php echo $c->nombre; ?> </option> <?php