2025-01-23 12:22:42 +01:00
|
|
|
<!DOCTYPE html>
|
2025-01-23 13:22:54 +01:00
|
|
|
<html lang="pl">
|
2025-01-23 12:22:42 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Najważniejsze Daty Polski</title>
|
2025-01-23 12:26:21 +01:00
|
|
|
<link rel="stylesheet" href="style.css">
|
2025-01-23 12:22:42 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2025-01-23 12:26:21 +01:00
|
|
|
<div class="menu-lewy">
|
|
|
|
<h1>Najważniejsze daty w historii Polski</h1>
|
|
|
|
</div>
|
|
|
|
<div class="menu-prawy">
|
2025-01-23 13:08:49 +01:00
|
|
|
<a href=""><img src="herb.png" alt="HERB"></a>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
2025-01-23 15:52:26 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
?>
|
2025-01-23 13:08:49 +01:00
|
|
|
<div class="form-container">
|
|
|
|
<form action="page1.php">
|
|
|
|
<input type="submit" value="ROZPOCZNIJ TEST" class="start">
|
|
|
|
</form>
|
|
|
|
</div>
|
2025-01-23 15:52:26 +01:00
|
|
|
<?php
|
|
|
|
if (isset($_POST["p5"])) {
|
|
|
|
if(@$_POST['p5'] == 1385) {
|
|
|
|
@$_SESSION['punkty']++;
|
|
|
|
}
|
|
|
|
echo "<h3>",'Punkty: ', @$_SESSION['punkty'],"</h3>";
|
|
|
|
echo "<h3>",'Procent: ', $_SESSION['punkty']*100/5, "%</h3>";
|
|
|
|
}
|
|
|
|
?>
|
2025-01-23 12:26:21 +01:00
|
|
|
</div>
|
2025-01-23 12:22:42 +01:00
|
|
|
</body>
|
|
|
|
</html>
|