Code
Warning: Cannot modify header information - headers already sent by (output started at g:\projet\localhost_site\program serveur\wamp\www\projet\boutique\php1\admin.php:9) in g:\projet\localhost_site\program serveur\wamp\www\projet\boutique\php1\admin.php on line 36
je vous montre le code
Code
if(($login1==$login2) and ($pass1=$pass2)) {
$reponse="vous êtes accepeter";
//echo"<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad = "window.location.href = 'articles.php';">";
header("Location:mainteance.php"); // maitenance
}
else {
$reponse="vous pouvez pas entrez";
}
[code]
<html>
<head>
<title>login des differentes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/boutique.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?php
if(isset($_POST['login'])){
$login1=($_POST['login']);
}
if(isset($_POST['pass'])){
$pass1=($_POST['pass']);
}
//------------------------------//
// les differentes login et pass
$login1="toto";
$login2="toto";
$pass1="tata";
$pass2="tata";
//------------------------------//
$base5= mysql_connect('localhost' , 'root' , '');
mysql_select_db('catalogue',$base5);
// -----------------------------------------------------------------------------------------------//
// je fais un test pour vois sur mon login et pass existe dans mon fichiers ----------------------//
//$requete1=mysql_db_query("catalogue","select * from compteur WHERE idcompt");
//while($data = mysql_fetch_array($requete1)) {
//-----------------------------------------------------------------------------------------------//
//}
if(($login1==$login2) and ($pass1=$pass2)) {
$reponse="vous êtes accepeter";
//echo"<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad = "window.location.href = 'articles.php';">";
header("Location:mainteance.php"); // maitenance
}
else {
$reponse="vous pouvez pas entrez";
}
je sais un probleme au debut de ma page
[/code]