LoginLogoff
Project loginlogoff
Loading...
Searching...
No Matches
vDetalle.php
Go to the documentation of this file.
1<form method="post">
2 <button class="volver" name="VOLVER">VOLVER</button>
3</form>
4<?php
5//Contenido de la variable $_SESSION-------------------------------------------------------
6 echo '<br><br><h3>Contenido de la variable $_SESSION</h3><br>';
7 echo '<table class="principal">';
8 echo '<tr><th>Variable</th><th>Valor</th></tr>';
9 if (!empty($_SESSION)) {
10 foreach ($_SESSION as $variable => $resultado) {
11 echo "<tr>";
12 echo '<td>$_SESSION[' . $variable . ']</td>';
13 echo "<td><pre>" . print_r($resultado, true) . "</pre></td>";
14 echo "</tr>";
15 }
16 } else {
17 echo "<tr><td colspan='2'><em>La variable \$_SESSION está vacía.</em></td></tr>";
18 }
19 echo "</table>";
20
21 //Contenido de la variable $_COOKIE---------------------------------------------------
22 echo '<br><br><h3>Contenido de la variable $_COOKIE</h3><br>';
23 echo '<table class="principal">';
24 echo '<tr><th>Variable</th><th>Valor</th></tr>';
25 if (!empty($_COOKIE)) {
26 foreach ($_COOKIE as $variable => $resultado) {
27 echo "<tr>";
28 echo '<td>$_COOKIE[' . $variable . ']</td>';
29 echo "<td><pre>" . $resultado . "</pre></td>";
30 echo "</tr>";
31 }
32 } else {
33 echo "<tr><td colspan='2'><em>La variable \$_COOKIE está vacía.</em></td></tr>";
34 }
35 echo "</table>";
36
37 echo '<h3>Contenido de la variable $_SERVER</h3>';
38 echo '<table class="principal">';
39 echo '<tr><th>Variable</th><th>Valor</th></tr>';
40 if (!empty($_SERVER)) {
41 foreach ($_SERVER as $variable => $resultado) {
42 echo "<tr>";
43 echo '<td>$_SERVER[' . $variable . ']</td>';
44 echo "<td><pre>" . print_r($resultado, true) . "</pre></td>";
45 echo "</tr>";
46 }
47 } else {
48 echo "<tr><td colspan='2'><em>La variable \$_SERVER está vacía.</em></td></tr>";
49 }
50 echo "</table>";
51
52?>