Donc :
<?
//Si le formulaire a été validé
session_start();
if (isset($_POST["Submit"])) {
$log= (isset($_POST["user_name"])) ? $_POST["user_name"] : "" ;
$pass= (isset($_POST["password"])) ? $_POST["password"] : "";
if($log == "artcaddba" && $pass == "Zyd8c6")
{
//exemple de mémorisation de connexion
$_SESSION["identification"] = $log;
header("index.php?page=administration");
} else {
header("index.php?page=news");
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Document sans titre</title>
</head>
<body>
<form name="login" method="post">
<div align="center">
<input name="user_name" type="text">
<input name="password" type="text">
<br>
<input type="submit" name="Submit" value="Connecter" >
<br>
</div>
</form>
</body>
</html>