Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 5, 2020 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f6856dd1bd47cac8dd3fce5aa8c26dce to your computer and use it in GitHub Desktop.
Save parzibyte/f6856dd1bd47cac8dd3fce5aa8c26dce to your computer and use it in GitHub Desktop.
<?php
include_once "conexion.php";
include_once "Estudiante.php";
include_once "encabezado.php";
$estudiante = Estudiante::obtenerUno($_GET["id"]);
?>
<div class="row">
<div class="col-12">
<h1>Editar estudiante</h1>
<form action="actualizar_estudiante.php" method="POST">
<input type="hidden" name="id" value="<?php echo $_GET["id"] ?>">
<div class="form-group">
<label for="nombre">Nombre</label>
<input value="<?php echo $estudiante->nombre ?>" name="nombre" required type="text" id="nombre" class="form-control" placeholder="Nombre">
</div>
<div class="form-group">
<label for="grupo">Grupo</label>
<input value="<?php echo $estudiante->grupo ?>" name="grupo" required type="text" id="grupo" class="form-control" placeholder="Grupo">
</div>
<div class="form-group">
<button class="btn btn-success" type="submit">Guardar</button>
</div>
</form>
</div>
</div>
<?php include_once "pie.php" ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment