42 lines
1.4 KiB
PHP
42 lines
1.4 KiB
PHP
|
<!DOCTYPE html>
|
||
|
<html lang="pl">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Najważniejsze Daty Polski</title>
|
||
|
<link rel="stylesheet" href="style.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="menu-lewy">
|
||
|
<h1>Najważniejsze daty w historii Polski</h1>
|
||
|
</div>
|
||
|
<div class="menu-prawy">
|
||
|
<a href="index.php"><img src="herb.png" alt="HERB"></a>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<h3>
|
||
|
<?php
|
||
|
session_start();
|
||
|
echo'Pytanie nr. ', $_SESSION['zadanie']++.' z 5';
|
||
|
?>
|
||
|
</h3>
|
||
|
<div class="form-container">
|
||
|
<form action="index.php" method="post">
|
||
|
<h3>UNIA W KREWIE</h3>
|
||
|
<input type="radio" name="p5" id="" value="1138"><span>1138</span><br>
|
||
|
<input type="radio" name="p5" id="" value="966"><span>966</span><br>
|
||
|
<input type="radio" name="p5" id="" value="1385"><span>1385</span><br>
|
||
|
<input type="radio" name="p5" id="" value="1034"><span>1034</span><br>
|
||
|
<br>
|
||
|
<input type="submit" value="NASTĘPNE PYTANIE" class="next" name="fin">
|
||
|
</form>
|
||
|
</div>
|
||
|
<?php
|
||
|
if(@$_POST['p4'] == 1025) {
|
||
|
@$_SESSION['punkty']++;
|
||
|
}
|
||
|
echo "<h3>",'Punkty: ', $_SESSION['punkty'],"</h3>";
|
||
|
?>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|