PHP - If select option value equals
<p>I want to comment off <code>.cities</code> whenever I select the value <code>Singaporean</code> however it should get visible If I choose any other nationality apart from singaporean. Is it possible in PHP ?</p>

<pre><code>&lt;div class="cities"&gt;New York&lt;/div&gt;

&lt;select id="emp_nationality" name='emp_nationality' class='form-control'&gt;
&lt;option  value="Singaporean"&gt;Singaporean&lt;/option&gt;
&lt;option  value="Albanian"&gt;Albanian&lt;/option&gt;
&lt;option  value="Algerian"&gt;Algerian&lt;/option&gt;
&lt;option  value="American"&gt;American&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>I tried this but for some reason it is not working</p>

<pre><code>&lt;?php

if ($_POST['emp_nationality'] != 'Singaporean') {
echo '&lt;div class="cities"&gt;New York&lt;/div&gt;';
}


?&gt;
</code></pre>

<blockquote>
  <p><strong>ERROR</strong>: Undefined index: emp_nationality</p>
</blockquote>