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 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| <?php
if (isset($_POST['code']))
{
if ($_POST['code']=='bonjour')
{
?>
<html>
<head>
<title>Nos jeux</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Le jeu est a votre porter
</body>
</html>
<?php
} else {
?>
<html>
<head>
<title>Mauvaise Réponse</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Mauvaise Reponse <br/>
Réessayer à nouveau
<form action="#" method="post">
La réponse:
<input type="text" name="code">
<input type="submit">
</form>
</body>
</html>
<?php
}
} else {
?>
<html>
<head>
<title>Répondez d'abors</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Entrez La reponse à la question ci-dessous
<form action="#" method="post">
Réponse:
<input type="text" name="code">
<input type="submit">
</form>
<?php echo ?>
</body>
</html>
<?php
}
?> |
Partager