title: if statement when NULL (PHP)
body: <p>I want to have if the variable = null then he makes it to 1.
  if the variable exist do nothing and dont make it again to 1.</p>
  
  <p>i got this code:</p>
  
  <pre><code>if (isset($_POST["register"])) {
          if(!$l_NextPage){
          $l_NextPage = 1;
          echo "helaas" . "&lt;/br&gt;";
          }
          if($l_NextPage == 1){
              echo "hoi";
              $l_NextPage = 2;
          }else if($l_NextPage == 2){
              echo "doei";
          }
  }
  </code></pre>
  
  <p>only the code dont work i tried <code>empty</code>, <code>isset</code>, <code>$var == FALSE</code> but everytime he makes $l_NextPage to 1. is there any solution i tried this too with session but even it don't work!</p>
  
  <p>What am I doing wrong?</p>