cookies - not fixed
This commit is contained in:
@@ -8,17 +8,18 @@
|
||||
* Datum: 18.05.2021
|
||||
******************************** */
|
||||
|
||||
|
||||
session_start();
|
||||
if (isset($_GET['d'])) {
|
||||
$strDistrict=$_GET['d'];
|
||||
$_SESSION['district'] = $_GET['d'];
|
||||
} else if (isset($_SESSION['district'])) {
|
||||
$_SESSION['district'] = $strDistrict;
|
||||
} else if (isset($_SESSION['district']))
|
||||
{
|
||||
$strDistrict=$_SESSION['district'];
|
||||
}
|
||||
else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
echo $strDistrict;
|
||||
require("config.php");
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@@ -69,7 +70,7 @@
|
||||
<a class="nav-link" href="index.php?ref=1">Karte</a>
|
||||
</li>
|
||||
<li class="nav-item active">
|
||||
<a class="nav-link" href="liste.php">Liste <span class="s"r-only">(current)</span></a>
|
||||
<a class="nav-link" href="liste.php">Liste <span class="sr-only">(current)</span></a>
|
||||
</li>
|
||||
<!-- District -->
|
||||
<form method="GET" action="index.php">
|
||||
|
||||
Reference in New Issue
Block a user