-
Notifications
You must be signed in to change notification settings - Fork 0
/
crear.php
39 lines (36 loc) · 1.03 KB
/
crear.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
32
33
34
35
36
37
38
39
<?php
session_start();
if (!isset($_SESSION["id"])) {
header("Location:login.php");
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="keywords" content="HTML5">
<title>Crear Post</title>
<link rel="stylesheet" href="stylos/login.css">
</head>
<body>
<div class="login">
<h2 class="login-header">Crear post</h2>
<form class="login-container" enctype="multipart/form-data" method="post" action="crear_post.php">
<p>
<input type="text" name="author" placeholder="author">
</p>
<p>
<input type="text" name="title" placeholder="Título">
</p>
<p>
<input type="text" name="content" placeholder="Contenido">
</p>
<p>
<input type="file" name="img" placeholder="Imagen" style="background-color: white;">
</p>
<p>
<input type="submit" value="Guardar">
</p>
</form>
</div>
</body>