-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunidad3.php
66 lines (55 loc) · 1.29 KB
/
unidad3.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="estilos.css">
<style>
form{
display: grid;
gap: .5rem;
margin-bottom: .5rem;
}
input{
width: 50%;
}
[type="submit"]{
margin: auto;
}
textarea{
resize: vertical;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Programación en PHP y MySQL - Nivel Avanzado</h1>
<nav>
<?php include("botonera.php"); ?>
</nav>
</header>
<section>
<h2>Comentarios</h2>
<form method="POST" action="comentarios.php" required>
<input type="text" placeholder="Nombre y Apellido" name="nombre" required>
<input type="email" name="email" placeholder="Correo electrónico" required>
<textarea placeholder="Comentario" name="comentario" required></textarea>
<input type="submit" value="Enviar">
</form>
<?php
if(isset($_GET['ok']))
echo '<span class="ok">¡Gracias por su comentario!</span>';
$comentarios=fopen('comentarios.txt','r');
fpassthru($comentarios);
fclose($comentarios);
?>
</section>
<aside>
</aside>
<footer>
<a href="https://site.elearning-total.com/courses/?com=lb">Programación en PHP y MySQL - Nivel Avanzado</a>
</footer>
</div>
</body>
</html>