-
Notifications
You must be signed in to change notification settings - Fork 0
/
three.php
48 lines (37 loc) · 1.06 KB
/
three.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
<?php
session_start();
// Total Session
$_SESSION['totalCount']++;
// Three Session
$_SESSION['threeCount']++;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Three</title>
<link rel="stylesheet" href="./index.css">
<link href="https://fonts.googleapis.com/css2?family=Baloo+Tamma+2&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<h1>Hit Counter</h1>
<nav>
<div class="nav">
<a href="index.php">Home</a>
<a href="one.php">One</a>
<a href="two.php">Two</a>
<a class='active' href="three.php">Three</a>
</div>
</nav>
<div class="content">
<h2>Page Three</h2>
<hr>
<h2>Count : <?php echo $_SESSION['threeCount'] ?></h2>
</div>
</header>
</div>
</body>
</html>