-
-
Save parzibyte/5f34624841e24eb64b7b8fa964f758ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
CRUD con SQL Server y PHP | |
@author parzibyte [parzibyte.me/blog] | |
@date 2019-06-03 | |
================================ | |
Este archivo muestra un formulario que | |
se envía a insertar.php, el cual guardará | |
los datos | |
================================ | |
*/ | |
?> | |
<?php include_once "encabezado.php" ?> | |
<div class="row"> | |
<div class="col-12"> | |
<h1>Agregar</h1> | |
<form action="insertar.php" method="POST"> | |
<div class="form-group"> | |
<label for="nombre">Nombre</label> | |
<input required name="nombre" type="text" id="nombre" placeholder="Nombre de mascota" class="form-control"> | |
</div> | |
<div class="form-group"> | |
<label for="edad">Edad</label> | |
<input required name="edad" type="number" id="edad" placeholder="Edad de mascota" class="form-control"> | |
</div> | |
<button type="submit" class="btn btn-success">Guardar</button> | |
<a href="./listar.php" class="btn btn-warning">Ver todas</a> | |
</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