salut,
bon j'ai ce code ci:
<?php
if(isset($_POST['login']) AND isset($_POST['pwd']))
{
if(!empty($_POST['login']) && !empty($_POST['pwd']))
{
$login =
htmlentities($_POST['login'], ENT_QUOTES);
$pwd =
htmlentities($_POST['pwd'], ENT_QUOTES);
include('l_db.php');
$sql = 'SELECT `pwd` FROM `candidat` WHERE `login`=\''.$login.'\'';
$req =
mysql_query($sql) or die('Erreur SQL !
'.$sql.'
'.
mysql_error());
$data =
mysql_fetch_assoc($req);
if($data['pwd'] != $pwd)
{
echo 'Mauvais login / password. Merci de recommencer
';
include('authentification.php');
exit();
}
else
{
session_start();
$_SESSION['login'] = $login;
echo 'Vous etes bien logué
';
}
}
else
{
echo 'Vous avez oublié de remplir un champ.
';
include('authentification.php');
exit();
}
}
mysql_close();
?>
le probleme c'est que on ne met rien dans les champ ou on écris n'importe quoi pis ca marche quelqu'un pourrait m'aider svp
vous pouvez voir par vous même
http://membres.lycos.fr/funfun69/authentification.php
merci