aktuelle.kurse/old_m133/4_Modulinhalte_und_Uebungen/15-cookies/auslesen-verbessert.php
Müller Harald 507e5da390 muh
2022-05-13 11:53:50 +02:00

35 lines
606 B
PHP

<html>
<head>
<title>Cookies</title>
</head>
<body>
<table>
<tr><th>Name</th><th>Wert</th></tr>
<tr><td>Programmiersprache</td><td>
<?php
if (isset($_COOKIE["Programmiersprache"])) {
echo htmlspecialchars(
$_COOKIE["Programmiersprache"]);
}
?>
</td></tr>
<tr><td>Sprachversion</td><td>
<?php
if (isset($_COOKIE["Sprachversion"])) {
echo htmlspecialchars(
$_COOKIE["Sprachversion"]);
}
?>
</td></tr>
<tr><td>Session</td><td>
<?php
if (isset($_COOKIE["Session"])) {
echo htmlspecialchars(
$_COOKIE["Session"]);
}
?>
</td></tr>
</table>
</body>
</html>