title: Not getting login and password values in div
body: <p>I added isset to my check.php to get rid of an unidentified index error. The thing is, I’m not getting anything in div when I type something random in the login and password fields which is the goal here. What am I doing wrong? I’ve checked the code over and over and I can’t get the right answer</p>
  
  <p>Here is my login.html:</p>
  
  <pre><code>    &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt; MYSQL &lt;/title&gt;
          &lt;script
           src="https://code.jquery.com/jquery-3.3.1.js"
           integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" 
           crossorigin="anonymous"&gt;
          &lt;/script&gt; 
      &lt;/head&gt;
      &lt;body&gt;
      &lt;div id="status"&gt;&lt;/div&gt;
      &lt;input id="login" placeholder="Login"&gt;&lt;br&gt;
      &lt;input type="password" id="pass" placeholder="Password"&gt;&lt;br&gt;
      &lt;button id="entry"&gt; Login &lt;/button&gt;
      &lt;script&gt;
      $("entry").click(function(){
          $.post("check.php", {login: $("#login").val(), password: $("#pass").val()},
          function(result){
          $("#status").html(result);
      })
  })
      &lt;/script&gt;
      &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>Here my check.php:</p>
  
  <pre><code>&lt;?php
  $login=isset($_POST['login']);
  $password=isset($_POST['password']);
  
  echo $login.$password;
  
  
  
  ?&gt;
  </code></pre>