Bonjour,
Au lieu de passer par un echo passe par une variable qui contient tes informations :
<?php
session_start();
include("./config.php");
if($_POST && !empty($_POST'login']) && !empty($_POST'mdp']))
{
$password_md5 = md5($_POST'mdp'].$salt);
if(($_admin_login == $_POST'login']) && ($password_md5 == $_admin_pass))
{
$_SESSION'_login'] = $_admin_login;
$_SESSION'_pass'] = $password_md5;
$texte = '<p style="color:green">Connexion reussi</p><p>Redirection en cours...</p>';
}
else
{
$texte = '<p style="color:red">Mauvais login ou mot de passe</p>';
header("location: form.html") ;
exit();
}
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Sparta Gym | Connexion en cours...</title>
<link rel="stylesheet" media="screen" href="style.css">
</head>
<body>
<div id="logo-creatux"><a href="http://www.sparta-gym.eu/site/panel/"><img src="images/logo.png" alt="Logo"></a></div>
<div id="conteneur-form">
<div class="contenu-form-2">
<h1>Espace d'administration - Connexion en cours...</h1>
<p>
<center><br/>
<div class="valide"><br />
<img src="images/chargement.gif" alt="Logo"><br />
<?php if(isset($texte)) {
echo $texte;
}
</div>
</center>
</p>
</form>
</div>
</div>
</body>
</html>
A essayer ;)