<?php
session_start();
$entered_Id = $_POST['identifiant'];
$entered_Password = $_POST['password'];
$saved_Name = "S�bastien";
$saved_Id="Seblor";
$saved_Password="pwd";
if ($entered_Id == $saved_Id && $entered_Password==$saved_Password)
{
$_SESSION['loggedin'] ="YES";
$_SESSION['name'] ="S�bastien";
$url="Location : bienvenue.php";
header($url);
exit;
}
$problem= "";
if ($entered_Id==$saved_Id && $entered_Password != $saved_Password)
$problem= "invalidPassword" ;
if($entered_Id != $saved_Id)
$problem ="invalidUser";
$url="Location : index.php?problem=$problem";
header($url);
exit;
?>