le 23/06/2010 à 18:14
lady_vm
Bonjour tout le monde,
voila j'essaye de créer un espace membre pour un site mais lorsque j'essaye de mettre mon login ainsi que mon mot de passe, il y a une erreur , pourriez vous m'aider??
Merci d'avance
Voici le code :
<!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 name="google-site-verification" content="VEeVnsR-Y6RD3-pnopHe4vlxXZ-4ii2jeIY0cmdNIbM" />
<META NAME="robots" CONTENT="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>franchise enfants avec la ribambelle - espace franchisé</title>
<meta name="keywords" content="franchise, franchiseur, ind?endant, franchising, cr?tion, entrepreneur, ind?endant, patron, entreprise">
<meta name="description" content="devenez un franchis?ribambelle et cr?z votre agence d'animation, le sp?ialiste de l'animation enfantine depuis 25 ans.">
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<?php require_once('Connections/connexion.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['mail'])) {
$loginUsername=$_POST['mail'];
$password=$_POST['mdp'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "accueilespace.php";
$MM_redirectLoginFailed = "espaceadherent.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_connexion, $connexion);
$LoginRS__query=sprintf("SELECT mail, mdp FROM tbl_user WHERE mail=%s AND mdp=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $connexion) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="sw/AC_RunActiveContent.js" language="javascript"></script>
<style type="text/css">
<!--
body {
background-color: #CCCC66;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.Style1 {
font-family: "trebuchet MS";
font-size: 12px;
color: #000000;
}
a:link {
color: #0066CC;
}
.Style6 {
font-size: 15px;
font-weight: bold;
}
.Style10 {
font-family: "trebuchet MS";
font-size: 13px;
color: #000000;
}
.Style14 {
font-size: 18px;
color: #303;
}
.Style15 {
font-size: 14px;
font-style: italic;
}
.Style16 {
font-size: 18px
}
-->
</style>
<script src="sw/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','150','height','662','src','sw/ridog','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#CCCC66','movie','sw/ridog' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="150" height="662">
<param name="movie" value="sw/ridog.swf" />
<param name="quality" value="high" />
<param name="BGCOLOR" value="#CCCC66" />
<embed src="sw/ridog.swf" width="150" height="662" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#CCCC66"></embed> </object></noscript></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCC66"><center>
<!--URL utilis?s dans l'animation-->
<!--texte utilis?dans l'animation-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("Cette page n?essite le fichier AC_RunActiveContent.js.");
} else {
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','name','sw/band1','width','650','height','185','align','middle','id','sw/band1','src','sw/bando1.swf','quality','high','wmode','transparent','bgcolor','#CCCC66','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','sw/bando1' ); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="sw/bando1" width="650" height="185" align="middle" id="sw/band1">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="sw/bando1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#CCCC66" />
<embed src="sw/bando1.swf" quality="high" wmode="transparent" bgcolor="#CCCC66" width="650" height="185" name="sw/bando1" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</center> </td>
</tr>
<tr>
<td bgcolor="#CCCC66"><div align="center">
<table width="650" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCC66"><div align="center"><span class="Style1 Style6"><span class="Style14">
Espace adhèrent</span></span><br />
<br />
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><div align="left" class="Style10">
<p align="center"><font size="4"><b></b></font></p>
<h1 class="Style16">Bienvenue dans votre espace. </h1>
<h1 class="Style16">Pour accéder au catalogue, à vos informations, à vos anciennes factures , à vos anciennes commandes ainsi qu'à la bibliothèque, saisissez vos informations de connexion dans le formulaire ci-dessous : </h1>
</div>
<form ACTION="<?php echo $loginFormAction; ?>" METHOD="POST" name="login">
<table align="center" border="0">
<tr>
<td>Identifiant :</td>
<td><input type="text" name="mail" maxlength="250"></td>
</tr>
<tr>
<td>Mot de passe :</td>
<td><input type="password"name="mdp" maxlength="10"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="se connecter"></td>
</tr>
</table>
</form>
<div align="left"></div> <div align="left"></div> <div align="left"></div></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table>
<p> </p>
</div> </td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="45" bgcolor="#CCCC66"><div align="center" class="Style10">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','630','height','35','src','sw/footer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','sw/newfooter' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="630" height="35">
<param name="movie" value="sw/newfooter.swf" />
<param name="quality" value="high" />
<embed src="sw/newfooter.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="630" height="35"></embed>
</object>
</noscript>
</div></td>
</tr>
<tr>
<td bgcolor="#CCCC66"><p> </p>
<p align="left"> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
<td width="150" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','150','height','662','src','sw/rido_d','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','sw/rido_d' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="150" height="662">
<param name="movie" value="sw/rido_d.swf" />
<param name="quality" value="high" />
<param name="BGCOLOR" value="#CCCC66" />
<embed src="sw/rido_d.swf" width="150" height="662" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#CCCC66"></embed>
</object>
</noscript></td>
</tr>
</table>
</body>
</html>
voila j'essaye de créer un espace membre pour un site mais lorsque j'essaye de mettre mon login ainsi que mon mot de passe, il y a une erreur , pourriez vous m'aider??
Merci d'avance
Voici le code :
<!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 name="google-site-verification" content="VEeVnsR-Y6RD3-pnopHe4vlxXZ-4ii2jeIY0cmdNIbM" />
<META NAME="robots" CONTENT="noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>franchise enfants avec la ribambelle - espace franchisé</title>
<meta name="keywords" content="franchise, franchiseur, ind?endant, franchising, cr?tion, entrepreneur, ind?endant, patron, entreprise">
<meta name="description" content="devenez un franchis?ribambelle et cr?z votre agence d'animation, le sp?ialiste de l'animation enfantine depuis 25 ans.">
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<?php require_once('Connections/connexion.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['mail'])) {
$loginUsername=$_POST['mail'];
$password=$_POST['mdp'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "accueilespace.php";
$MM_redirectLoginFailed = "espaceadherent.html";
$MM_redirecttoReferrer = false;
mysql_select_db($database_connexion, $connexion);
$LoginRS__query=sprintf("SELECT mail, mdp FROM tbl_user WHERE mail=%s AND mdp=%s",
GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
$LoginRS = mysql_query($LoginRS__query, $connexion) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="sw/AC_RunActiveContent.js" language="javascript"></script>
<style type="text/css">
<!--
body {
background-color: #CCCC66;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.Style1 {
font-family: "trebuchet MS";
font-size: 12px;
color: #000000;
}
a:link {
color: #0066CC;
}
.Style6 {
font-size: 15px;
font-weight: bold;
}
.Style10 {
font-family: "trebuchet MS";
font-size: 13px;
color: #000000;
}
.Style14 {
font-size: 18px;
color: #303;
}
.Style15 {
font-size: 14px;
font-style: italic;
}
.Style16 {
font-size: 18px
}
-->
</style>
<script src="sw/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="150" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','150','height','662','src','sw/ridog','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#CCCC66','movie','sw/ridog' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="150" height="662">
<param name="movie" value="sw/ridog.swf" />
<param name="quality" value="high" />
<param name="BGCOLOR" value="#CCCC66" />
<embed src="sw/ridog.swf" width="150" height="662" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#CCCC66"></embed> </object></noscript></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCC66"><center>
<!--URL utilis?s dans l'animation-->
<!--texte utilis?dans l'animation-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("Cette page n?essite le fichier AC_RunActiveContent.js.");
} else {
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','name','sw/band1','width','650','height','185','align','middle','id','sw/band1','src','sw/bando1.swf','quality','high','wmode','transparent','bgcolor','#CCCC66','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','sw/bando1' ); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" name="sw/bando1" width="650" height="185" align="middle" id="sw/band1">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="sw/bando1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#CCCC66" />
<embed src="sw/bando1.swf" quality="high" wmode="transparent" bgcolor="#CCCC66" width="650" height="185" name="sw/bando1" align="middle" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</center> </td>
</tr>
<tr>
<td bgcolor="#CCCC66"><div align="center">
<table width="650" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#CCCC66"><div align="center"><span class="Style1 Style6"><span class="Style14">
Espace adhèrent</span></span><br />
<br />
<table width="450" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><div align="left" class="Style10">
<p align="center"><font size="4"><b></b></font></p>
<h1 class="Style16">Bienvenue dans votre espace. </h1>
<h1 class="Style16">Pour accéder au catalogue, à vos informations, à vos anciennes factures , à vos anciennes commandes ainsi qu'à la bibliothèque, saisissez vos informations de connexion dans le formulaire ci-dessous : </h1>
</div>
<form ACTION="<?php echo $loginFormAction; ?>" METHOD="POST" name="login">
<table align="center" border="0">
<tr>
<td>Identifiant :</td>
<td><input type="text" name="mail" maxlength="250"></td>
</tr>
<tr>
<td>Mot de passe :</td>
<td><input type="password"name="mdp" maxlength="10"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="se connecter"></td>
</tr>
</table>
</form>
<div align="left"></div> <div align="left"></div> <div align="left"></div></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table>
<p> </p>
</div> </td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="45" bgcolor="#CCCC66"><div align="center" class="Style10">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','630','height','35','src','sw/footer','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','sw/newfooter' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="630" height="35">
<param name="movie" value="sw/newfooter.swf" />
<param name="quality" value="high" />
<embed src="sw/newfooter.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="630" height="35"></embed>
</object>
</noscript>
</div></td>
</tr>
<tr>
<td bgcolor="#CCCC66"><p> </p>
<p align="left"> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table></td>
<td width="150" valign="top"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','150','height','662','src','sw/rido_d','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','sw/rido_d' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="150" height="662">
<param name="movie" value="sw/rido_d.swf" />
<param name="quality" value="high" />
<param name="BGCOLOR" value="#CCCC66" />
<embed src="sw/rido_d.swf" width="150" height="662" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" bgcolor="#CCCC66"></embed>
</object>
</noscript></td>
</tr>
</table>
</body>
</html>