hi when i am tring to run this script then could not setup cookies don't know why somebody plz help
<!doctype html>
<html>
<head>
<title>Login</title>
</head>
<body>
<p><a href="aba.php">Register</a> | <a href="login.php">Login</a></p>
<h3>Login Form</h3>
<form action="" method="POST">
Email: <input type="text" name="email"><br />
<input type="submit" value="Login" name="submit"><br />
</form>
<?php
if(isset($_POST["submit"])){
include 'dbconnect.php'
if(!empty($_POST['email']) && !empty($_POST['pass'])) {
$ename=$_POST['email'];
$pass=$_POST['pass'];
$securepass=md5($pass);
$query=mysql_query("SELECT * FROM users WHERE user_email='".$ename."' AND user_pass='".$securepass."'");
$numrows=mysql_num_rows($query);
if($numrows!=0)
{
while($row=mysql_fetch_assoc($query))
{
$dbename=$row['user_email'];
$dbpassword=$row['user_pass'];
$dbusername=$row['user_name'];
}
if($ename == $dbename && $securepass == $dbpassword)
{
if (!isset($_COOKIE["testcookie"])){
setcookie("testcookie",$dbename,$dbpassword,$dbusername,mktime()+86400,"/") or die("could not set cookie" );
/* Redirect browser */
header("Location: member.php");
}
else{echo "plz enable your cookies on the browser";}
}
}else {
echo "Invalid username or password!";
}
} else {
echo "All fields are required!";
}
}
?>
</body>
</html>