title: if else and session - how to stop both if's showing up?
body: <p>I'm not sure what I'm doing wrong here, but after a selection is made in the dropdown from the first "if unset" if, the dropdown still shows up above the the new if's output. </p>
  
  <p>Once a selection is made, it should go to "ukset" or "uknotset" and not show the dropdown again.</p>
  
  <p>Any idea what I am doing wrong?</p>
  
  <pre><code>&lt;?php
          session_start();
  
          // if unset
          if(!isset($_SESSION['grant_access'])) {$_SESSION['grant_access'] = 'unset';}
          if($_SESSION['grant_access'] == 'unset') {
              echo '&lt;p&gt;Make your choice&lt;/p&gt;';
              echo '&lt;form action="" onchange="this.submit()" method="post"&gt;';
              echo '&lt;select name="thecountry"&gt;';
                  echo '&lt;option&gt;Choose&lt;/option&gt;';
                  echo '&lt;option value="hello"&gt;Hello&lt;/option&gt;';
                  echo '&lt;option value="goodbye"&gt;Goodbye&lt;/option&gt;';
                  echo '&lt;option value="unsure"&gt;Unsure&lt;/option&gt;';
              echo '&lt;/select&gt;';
              echo '&lt;/form&gt;';
              }
  
          // if UK is set
          if(isset($_POST['thecountry']) &amp;&amp; ($_POST['thecountry'] == 'hello')) {$_SESSION['grant_access'] = 'ukset';}
          if($_SESSION['grant_access'] == 'ukset') {
              echo 'welcome';
              }
  
          // if UK is not set
          if(isset($_POST['thecountry']) &amp;&amp; ($_POST['thecountry'] !== 'hello')) {$_SESSION['grant_access'] = 'uknotset';}
          if($_SESSION['grant_access'] == 'uknotset') {
              echo 'access denied';
              }   
  
  ?&gt;
  </code></pre>