-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrear-categoria.php
31 lines (27 loc) · 978 Bytes
/
crear-categoria.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php require_once 'includes/redireccion.php'; ?>
<?php require_once 'includes/cabecera.php'; ?>
<?php require_once 'includes/lateral.php'; ?>
<!-- CAJA PRINCIPAL -->
<div id="principal">
<h1>Crear Categorias</h1>
<p>Añade nuevas categorias al Blog</p>
<br /><br />
<!-- Mostrar errores -->
<?php if(isset($_SESSION['completado'])): ?>
<div class="alerta alerta-exito">
<?=$_SESSION['completado']?>
</div>
<?php elseif(isset($_SESSION['errores']['general'])): ?>
<div class="alerta alerta-error">
<?=$_SESSION['errores']['general']?>
</div>
<?php endif; ?>
<form action="guardar-categoria.php" method="POST">
<label for="nombre">Nombre de la Categoria: </label>
<br />
<input type="text" name="nombre" required="required" maxlength="10"/>
<input type="submit" value="Guardar" />
</form>
<?php borrarErrores(); ?>
</div> <!--fin principal-->
<?php require_once 'includes/pie.php'; ?>