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 63 64 65 66 67 68 69 70 71
| <!DOCTYPE html>
<html lang="fr">
<head>
<!-- informations pour le navigateur -->
<!-- Section non affichable -->
<meta charset="utf-8" />
<title> Page Type </title>
<link rel ="stylesheet" href="../StylePHP.css"/>
</head>
<body>
<!-- Corps de la page web -->
<?php
if (isset($_POST['MdP']))
{
if (($_POST['MdP'] == "couscous") and ($_POST['login']== "vincent"))
{
echo ("<p>Mot de passe et login corrects</p>\n\n");
echo "<p>Bonjour ".$_POST['login']."</p>";
echo "<p>Cliquez içi afin d'être redirigé vers l'autre page</p>";
?>
<form action="appelcible2.php" method="post">
<input type="submit" value="CLIQUEZ SUR MOI" />
</form>
<?php
}
else
{
echo "Login ou mot de passe éronné";
$_POST=NULL;
?>
<form action="appelcible.php" method="post">
<p> Login
<input type="text" name= "login" required />
</p>
<p> Mot de passe
<input type="password" name= "MdP" required />
<input type="submit" value="Valider" />
</p>
</form>
<?php
}
}
else
{
?>
<form action="appelcible.php" method="post">
<p> Login
<input type="text" name= "login" required />
</p>
<p> Mot de passe
<input type="password" name= "MdP" required />
<input type="submit" value="Valider" />
</p>
</form>
<?php
}
?>
</body>
</html> |
Partager