File: verif_connect.php - Tab length: 1 2 4 8 - Lines: on off - No wrap: on off

<?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;
?>