Hope someone can help me....
First of all sorry for my bad english!
I'm trying to write an php code for a user login.
When I run the code i always get the same result:"Login failure".
Even if thes "user" and "password" that i tiped in exists or not.
I used xampp 3.1.0, databasename: login, tablename: login.
Think about it for days but can't find any solution, please can someone help me? what i do wrong?

Here is the code:
<html>
<head >
<body>
<form action='login.php?login=yes' method=POST>
Username:<input type=text name='user' /><br />
Password: <input type=password name='pass' /> <br />
<input type=submit value='Go!' />
</form>
<?php
$user=isset($_POST['user']);
$pass=isset($_POST['pass']);
$login=isset($_GET['login']);
if($login=='yes')
{
$con=mysql_connect('localhost','root','root') or die("Cant connect host");
mysql_select_db('login') or die("Cant connect database");
$get=mysql_query("SELECT count(id) FROM login WHERE (user='$user' AND pass='$pass')") or die ("Error on mysql_querry");
$result=mysql_result($get,0);
if($result!=1) echo "Login failure!";
else {
echo "Login sucess!";
$_SESSION['user']=$user;
}
}
?>
</head>
</body>
</html>