le 02/08/2004 à 13:55
ringo
voici mon code et je ne parviens pas à entrer ds la base.
<?php include("inc/conf.php"); ?>
<?php include("inc/fonctions.php"); ?>
<?php
session_start();
if(session_is_registered('pseudo'))
{
mysql_close($connect_db);
header("location: index.php");
exit;
if (($pseudo == $pseudo_conf) and ($password == $password_conf))
{
session_register("pseudo");
session_register("password");
mysql_close($connect_db);
header("Location: index.php?".session_name()."=".session_id());
exit();
}
}
?><html>
<head>
<title>Administration</title>
<link REL="StyleSheet" TYPE="text/css" HREF="/<?php echo("$prefixe_dossier"); ?>css/feuille.css">
</head>
<body bgcolor="#FFFFFF">
<table border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#000000">
<tr valign="top">
<td bgcolor="#99CCCC"><b>Identification : </b></td>
</tr>
<tr valign="top">
<td bgcolor="#ffffff">
<form action="login.php" method="post">
<input type="hidden" name="action" value="send">
<table border="0" align="center">
<tr>
<td>Pseudonyme : </td>
<td><input type="text" name="pseudo" size="40"></td>
</tr>
<tr>
<td>Mot de passe : </td>
<td><input type="password" name="password" size="40"></td>
</tr>
</table>
<br>
<center><input type="submit" value="Connexion"></center>
</form>
</td>
</tr>
</table>
</body>
</html><?php mysql_close($connect_db); ?>
<?php include("inc/conf.php"); ?>
<?php include("inc/fonctions.php"); ?>
<?php
session_start();
if(session_is_registered('pseudo'))
{
mysql_close($connect_db);
header("location: index.php");
exit;
if (($pseudo == $pseudo_conf) and ($password == $password_conf))
{
session_register("pseudo");
session_register("password");
mysql_close($connect_db);
header("Location: index.php?".session_name()."=".session_id());
exit();
}
}
?><html>
<head>
<title>Administration</title>
<link REL="StyleSheet" TYPE="text/css" HREF="/<?php echo("$prefixe_dossier"); ?>css/feuille.css">
</head>
<body bgcolor="#FFFFFF">
<table border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#000000">
<tr valign="top">
<td bgcolor="#99CCCC"><b>Identification : </b></td>
</tr>
<tr valign="top">
<td bgcolor="#ffffff">
<form action="login.php" method="post">
<input type="hidden" name="action" value="send">
<table border="0" align="center">
<tr>
<td>Pseudonyme : </td>
<td><input type="text" name="pseudo" size="40"></td>
</tr>
<tr>
<td>Mot de passe : </td>
<td><input type="password" name="password" size="40"></td>
</tr>
</table>
<br>
<center><input type="submit" value="Connexion"></center>
</form>
</td>
</tr>
</table>
</body>
</html><?php mysql_close($connect_db); ?>