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
| <html>
<head><title> Log In </title>
</head>
<Body>
<h3> Espace Agent </h3>
<h2> Connecter-Vous </h2>
<form method="POST">
<p>Log-In : <input name="Login"> </p>
<p>Password: <input type="password" name="password"></p>
<p> <input type="submit" value="connect"/> </p>
<input type="reset" value="reinitialiser"/> </p>
</form>
<?php
mysql_connect ("localhost","root","");
mysql_select_db ("c.c.p");
$id=$_POST['login'];
$pass=$_POST['password'];
$result=mysql_query("select mot_de_passe from client where log-in=\"$id\"");
if($pass=$result){
echo'<a href="consultation.php">consult</a>';
}
else{
echo "login ou (et) mot de passe inccorect (s)";
}
?>
</body>
</html> |
Partager