Notice: Undefined index: login in C:\xampp\htdocs\www\login.php
houda
-
houda -
houda -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-fr" lang="fr-fr" dir="ltr">
<head>
<link rel="stylesheet" href="style.css" type="text/css"/>
<meta charset="utf-8/">
<title></head>
<body>
<?php
$login=$_POST['login'];
$password=$_POST['password'];
$login=$_POST['login'];
$password=$_POST['password'];
if(isset($login)) { // on arrive du formulaire
$log="houda"; // change ton login ici
$pwd="houdahouda"; // change ton password ici
if ((strcmp($login, $log) != 0)||(strcmp($password, $pwd) != 0)) {
// Ne facilitons pas la tâche aux malveillants - Le test est fait sur la paire login/password
print "<html><body style=\"text-align:center\"><b>Vous n'êtes pas reconnu.</b><br />Vérifiez SVP.<br /><a href=\"".
htmlentities($_SERVER['PHP_SELF'])."\">RETOUR</a></body></html>";
// petite page bien formée qui efface la paire login/password
exit; }
// Ou bien un header("Location: etc... ou bien :
echo header ("Location: principal.php");
/* ATTENTION DANS LE CAS D'UNE UTILISATION D'UN FORMULAIRE AVEC ENVOI DE DONNEES DANS CETTE PARTIE, IL faut METTRE :
<form method="post" ACTION='princip.php'>
<input type='hidden' name='go' value='okludo'>
<input type='hidden' name='entreeludo' value='3'>
......
// Mettre ici tout ton espace administration -->
// Fin de la page d'administration
*/
}
else { // la première connexion à la page ou sur un échec
echo <<<EOF
<html>
<head>
<title>ESPACE ADMINISTRATION - PAGE PROTEGEE</title>
<style type="text/css">
td {font-family:"Verdana";font-size:12pt}
body, .centre {text-align:center}
</style>
</head>
<body>
<ll> <br /><h2><span style= "color:#E68A00 " >Saisissez votre login et votre mot de passe</h2><br />
<form method="post" action="">
<table align=center>
<tr><td><span style= "color:#E68A00 " >Login : </font></td>
<td><input type="text" name="login" size=15></td></tr>
<tr><td><span style= "color:#E68A00 " >Mot de passe : </font></td>
<td><input type="password" name="password" size=15></td></tr>
<tr><td class="centre" colspan="2"><input type="submit" name="enter" value="- OK -" style="cursor:hand;color:blue;font:bold;"></td></tr>
</table><br />
</form>
<br /><span style= "color:#E68A00 " >Espace Administration protégé
<br /> <span style= "color:#E68A00 " >Par houda chekhchoukh </ll>
</body>
</html>
EOF;
}
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr-fr" lang="fr-fr" dir="ltr">
<head>
<link rel="stylesheet" href="style.css" type="text/css"/>
<meta charset="utf-8/">
<title></head>
<body>
<?php
$login=$_POST['login'];
$password=$_POST['password'];
$login=$_POST['login'];
$password=$_POST['password'];
if(isset($login)) { // on arrive du formulaire
$log="houda"; // change ton login ici
$pwd="houdahouda"; // change ton password ici
if ((strcmp($login, $log) != 0)||(strcmp($password, $pwd) != 0)) {
// Ne facilitons pas la tâche aux malveillants - Le test est fait sur la paire login/password
print "<html><body style=\"text-align:center\"><b>Vous n'êtes pas reconnu.</b><br />Vérifiez SVP.<br /><a href=\"".
htmlentities($_SERVER['PHP_SELF'])."\">RETOUR</a></body></html>";
// petite page bien formée qui efface la paire login/password
exit; }
// Ou bien un header("Location: etc... ou bien :
echo header ("Location: principal.php");
/* ATTENTION DANS LE CAS D'UNE UTILISATION D'UN FORMULAIRE AVEC ENVOI DE DONNEES DANS CETTE PARTIE, IL faut METTRE :
<form method="post" ACTION='princip.php'>
<input type='hidden' name='go' value='okludo'>
<input type='hidden' name='entreeludo' value='3'>
......
// Mettre ici tout ton espace administration -->
// Fin de la page d'administration
*/
}
else { // la première connexion à la page ou sur un échec
echo <<<EOF
<html>
<head>
<title>ESPACE ADMINISTRATION - PAGE PROTEGEE</title>
<style type="text/css">
td {font-family:"Verdana";font-size:12pt}
body, .centre {text-align:center}
</style>
</head>
<body>
<ll> <br /><h2><span style= "color:#E68A00 " >Saisissez votre login et votre mot de passe</h2><br />
<form method="post" action="">
<table align=center>
<tr><td><span style= "color:#E68A00 " >Login : </font></td>
<td><input type="text" name="login" size=15></td></tr>
<tr><td><span style= "color:#E68A00 " >Mot de passe : </font></td>
<td><input type="password" name="password" size=15></td></tr>
<tr><td class="centre" colspan="2"><input type="submit" name="enter" value="- OK -" style="cursor:hand;color:blue;font:bold;"></td></tr>
</table><br />
</form>
<br /><span style= "color:#E68A00 " >Espace Administration protégé
<br /> <span style= "color:#E68A00 " >Par houda chekhchoukh </ll>
</body>
</html>
EOF;
}
?>
A voir également:
- Notice: Undefined index: login in C:\xampp\htdocs\www\login.php
- Notice gratuite - Guide
- Notice chromecast - Guide
- Notice télécommande universelle grundig - Forum Téléviseurs
- Homday x-pert écouteur bluetooth notice ✓ - Forum Casque et écouteurs
- Uleway g381 notice - Forum Mobile