-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmethod_get.php
49 lines (45 loc) · 1.85 KB
/
method_get.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--CND BOOTSTARP-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="css/calculadora.css">
<title>Mayor o menor de edad</title>
</head>
<body>
<a href="index.html#section-respuestas">
<img class="home" src="img/hogar.png" alt="">
</a>
<div class="main-frame-cal">
<form action="" method="get">
<div class="form-group">
<label for="exampleFormControlInput1">Nombre</label>
<input type="text" name="nombre" class="form-control" id="exampleFormControlInput1" placeholder="Digite su Nombre">
</div>
<div class="form-group">
<label for="exampleFormControlInput1">Apellido</label>
<input type="text" name="apellido" class="form-control" id="exampleFormControlInput1" placeholder="Digite su Apellido">
</div>
<div class="form-group">
<label for="exampleFormControlInput1">Cédula</label>
<input type="text" name="cc" class="form-control" id="exampleFormControlInput1" placeholder="Digite su Cédula">
</div>
<button type="submit" name="verificar" class="btn btn-outline-info">Enviar</button>
</form>
<?php
$edad = 0;
if (isset($_GET['verificar'])) {
$nombre = $_GET['nombre'];
$apellido = $_GET['apellido'];
$cedula = $_GET['cc'];
echo "Nombre : ".$nombre."<br>";
echo "Apellido : ".$apellido."<br>";
echo "Cédula : ".$cedula."<br>";
}
?>
</div>
</body>
</html>