hi!
I have prbleme is that how can apache recieve email and how I can add session it mean that the person can not add or delete or do any evenement before he login .
<?PHP
session_start();
include("connexion.php");
if (isset($_POST['login'])and isset($_POST['password']))
{
extract($_POST);
if (empty($login) or empty($password))
{
echo " sorry ,to connect you should to entre the both password and login ";
}
else
{
$result1 = mysql_query("select * from admin where login='$login' and password='$password'");
if(mysql_num_rows($result1)==true)
{header("location:client.php");
}
else
{
echo " sorry your password or login is not correct ";
}
}
}
?>