-
Notifications
You must be signed in to change notification settings - Fork 0
/
response.php
104 lines (101 loc) · 3.92 KB
/
response.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
<?php
if (isset($_POST['country']) && isset($_POST['capital']) && isset($_POST['code']) && isset($_POST['continent']) && isset($_POST['population']) && isset($_POST['area']) && isset($_POST['currency']) && isset($_POST['language']) && isset($_POST['call']) && isset($_POST['symbol'])) {
$country = $_POST['country'];
$capital = $_POST['capital'];
$code = $_POST['code'];
$continent = $_POST['continent'];
$population = $_POST['population'];
$area = $_POST['area'];
$currency = $_POST['currency'];
$language = $_POST['language'];
$call = $_POST['call'];
$symbol = $_POST['symbol'];
}
?>
<html>
<head>
<meta charset="utf-8">
<title>OpenCountries</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="//cdn.datatables.net/1.11.2/css/jquery.dataTables.min.css">
<script src="//cdn.datatables.net/1.11.2/js/jquery.dataTables.min.js"></script>
<style>
body {
background: url(https://coolbackgrounds.io/images/backgrounds/index/sea-edge-79ab30e2.png) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
border-top: 1px solid black;
border-right: 1px solid black;
}
.grid > span {
padding: 8px 4px;
border-left: 1px solid black;
border-bottom: 1px solid black;
border-right: 1px solid black;
border-top: 1px solid black;
margin-left: 5px;
margin-right: 5px;
margin-top: 5px;
}
.descInfo {
font-weight: bold;
}
</style>
</head>
<body>
<nav class="navbar navbar-dark bg-primary">
<div class="container">
<a class="navbar-brand" href="/">OpenCountries</a>
</div>
</nav>
<table id="example" class="table table-striped table-bordered" style="width:50%;margin-top: 20px;margin-right:100px;margin-left:380px;background-color:lightgrey;border-color:black">
<thead>
<tr>
<th>Continent</th>
<td><?php echo $continent ?></td>
</tr>
</thead>
<tbody>
<tr>
<th>Country</th>
<td><?php echo $country ?></td>
</tr>
<tr>
<th>Capital</th>
<td><?php echo $capital ?></td>
</tr>
<tr>
<th>Code</th>
<td><?php echo $code ?></td>
</tr>
<tr>
<th>Language</th>
<td><?php echo $language ?></td>
</tr>
<tr>
<th>Population</th>
<td><?php echo $population ?></td>
</tr>
<tr>
<th>Area</th>
<td><?php echo $area ?></td>
</tr>
<tr>
<th>Currency</th>
<td><?php echo $currency . " " . $symbol ?></td>
</tr>
<tr>
<th>Phone code</th>
<td><?php echo "+" . $call ?></td>
</tr>
</table>
<body>
</html>