title: learning php , why this conditional if not work
body: <p>i'm a beginner in PHP and i'm study the POST request</p>
  <p>i wrote this simple code</p>
  <pre><code>&lt;?php
  
  $host = &quot;127.0.0.1&quot;;
  $user = &quot;root&quot;;
  $password = &quot;&quot;;
  $database = &quot;login_db&quot;;
  
  $connessione = new mysqli($host,$user,$password,$database);
  
  if ($connessione === false) {
  
      die(&quot;errore connessione db &quot; .$connessione-&gt;connection_error);
  
  }
  
   if (isset($_POST['staff_ID'])){
          echo &quot;ok&quot;;
      }else {
          
          echo &quot;errore&quot;;
      }
  
  $connessione -&gt; close();
  
  ?&gt;
  
  </code></pre>
  <p>and i send the post request via url with the following link:</p>
  <pre><code>http://localhost/test/nxSignUp.php?method=post&amp;staff_ID=4033
  </code></pre>
  <p>why it give me always errore and not OK? im passing the parameter staff_ID.. what i'm doing wrong?</p>