-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.php
105 lines (73 loc) · 3.05 KB
/
test.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php include("header.php"); ?>
<body>
<!--Cover
Se pone el titulo de la seccion correspondiente-->
<section class="cover-c">
<p class="tituloprincipal">Reserva</p>
</section>
<!--Sec100
-Solo se debe colocar a un section la clase "sec100"
-A las imagenes se debe colocar la clase "imagen" y debe tener una relacion de aspecto 4:3
-->
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="col-xs-12 columna1" ></div>
<h1 class="titulo-c">Visita nuestra cafetería</h1>
<p class="parrafo-c">Café Au Lait esta ubicada en el centro de San José, si deseas hacer una reservación, favor contactarnos a la siguiente información.</p>
</div>
</div>
</div>
<!--Reservaciones-->
<div id="reservacion">
<h2 class="subti-c">¿Quieres hacer una reservación? <strong> +506 2254-6788</strong></h2>
</div>
<?php
if (isset($_POST["Nombre"])){
echo '<div class="sec100prin"> <h1>Informacion de su Reserva </h1>' .
'<div class="sec100"><div class="sec100" style="border: 2px solid orange; text-align: center">Nombre:' .' '. $_POST["Nombre"] . ' '. $_POST["Apellido"] .
"<br>".
'Cedula:' . ' '. $_POST["Cedula"] .
"<br>".
'Telefono:' .' '. $_POST["Telefono"] .
"<br>".
'Email:' .' '. $_POST["Correo"] . ' ' .
"<br>".
'La fecha de su reserva es:' .' '.$_POST["Fecha"] .
"<br></div></div> </div>" ;}
else{
echo "hubo un error";
}
?>
<?php
$Nombre = "";
if(!empty($_POST["Nombre"])){
$Nombre = $_POST["Nombre"];
}
$Apellido = "";
if(!empty($_POST["Apellido"])){
$Apellido = $_POST["Apellido"];
}
$Cedula = "";
if(!empty($_POST["Cedula"])){
$Cedula = $_POST["Cedula"];
}
$Telefono = "";
if(!empty($_POST["Telefono"])){
$Telefono = $_POST["Telefono"];
}
$Correo = "";
if(!empty($_POST["Correo"])){
$Correo = $_POST["Correo"];
}
$Fecha = "";
if(!empty($_POST["Fecha"])){
$Contratacion= $_POST["Fecha"];
}
$archivos="datos.txt";
$archivos="$Nombre".".txt";
$archivos=fopen("$archivos","a+");
fwrite($archivos,$Nombre." ".$Apellido." - ".$Cedula." - ".$Telefono." - ".$Fecha." - ");
fclose($archivos);
?>
<?php include("footer.php"); ?>