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
|
<html>
<head>
<title>Nouvelle page 1</title>
</head>
<body>
<?
$log=$_POST['log'];
$pa=$_POST['pass'];
mysql_connect("localhost","root","");
mysql_select_db("123");
$req="select * from code";
$res=mysql_query("$req");
$vr=false;
while ($eng=mysql_fetch_array($res))
{ $l=$eng['login'];
$p=$eng['pas'];
if(($l==$log)&&($p==$pa)) vr=true; }
if (vr==true) echo('vous etre identifier vuiez inscrire <a href="id.php">
inscription </a> ');
else echo("login et pwassord incorect");
?>
</body>
</html> |
Partager