-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathend.php
39 lines (34 loc) · 844 Bytes
/
end.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
<?php
/**Page de fin du jeu*/
session_start();
?>
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Jeu du Pendu</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<?php
/*Vérifie si la partie est gagnée*/
if($_GET['victory'] == "true")
{
echo '<h2>Felicitations</h2>';
}
else
{
echo '<h2>Zut alors, tu as perdu...</h2>';
echo '<h2>Essaye encore !</h2>';
echo '<img src="img/pendu6.png">';
}
echo '<p>Le mot était: ' . $_SESSION['word'] . '</p>';
?>
</body>
<form action="newgame.php"> <!--Method Link ???-->
<input type="submit" value="Nouvelle partie"/>
</form>
</html>