Probleme verification login & pass
Posté : 22 avr. 2007, 22:55
Bonjour,
je sui en train de créer une appli en php mais je sui novice et je bute sur ce problème
J'ai créé une page de connexion ou la personne rentre son login et son pass et grâce à un form j'envoi la saisie sans une page de verif qui voit si les informations sont correctes mais la ca bloque voici le code de la page de verif :
et voici la page de connexion :
Si vous voyez où est le problème merci
je sui en train de créer une appli en php mais je sui novice et je bute sur ce problème
J'ai créé une page de connexion ou la personne rentre son login et son pass et grâce à un form j'envoi la saisie sans une page de verif qui voit si les informations sont correctes mais la ca bloque voici le code de la page de verif :
Code : Tout sélectionner
<?
include "connexion.inc";
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>
<body>
<?
Select *
From Joueur
mysql_query($query,$bd);
if {
$login = $_POST['login_joueur'];
$pass = $_POST['pass_joueur'];
header("Location: accueil.php");}
else {
header("Location: connexion.php");}
?>
</body>
</html>Code : Tout sélectionner
<?
include "connexion.inc";
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #000000;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
a:active {
text-decoration: none;
}
-->
</style></head>
<body LINK="#FFFFFF" VLINK="#FFFFFF">
<table width="1024" border="0">
<tr>
<td align="center"><img src="images/baniere.jpg" longdesc="images/baniere.jpg" /></td>
</tr>
</table>
<table width="1024" height="500" border="0">
<tr>
<td align="center" valign="middle" background="images/elfe_noir.jpg">
<form action="verif.php" name="envoi_connexion" method="post">
<table width="300" border="0">
<tr>
<td width="300" align="center"><font class="intitule">Login</font></td>
</tr>
<tr>
<td width="300" height="28" align="center"><input name="login" type="text" dir="ltr" lang="fr" size="15" maxlength="15" /></td>
</tr>
<tr>
<td width="300" align="center"><font class="intitule">Password</font></td>
</tr>
<tr>
<td width="300" align="center"><input name="pass" type="password" dir="ltr" lang="fr" size="15" maxlength="15" /></td>
</tr>
</table>
<br />
<table width="300" border="0">
<tr>
<td width="300" align="center"><input name="connexion" type="submit" dir="ltr" lang="fr" value="Connexion" /></td>
</form>
</tr>
</table>
<br /><table width="1024" border="0">
<tr>
<td align="center"><font class="lien"><a href="inscription.php">Enregistrer un nouveau joueur</a></font></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>