If statement not running properly
<p>This is my PHP code, essentially I check the user's country, and if it matches the allowed countries, I let the affiliate code to run. Well for some reason it's not running</p>

<pre><code>&lt;?php
$output = shell_exec('geoip-lookup '.$_SERVER['REMOTE_ADDR']);
if($_SESSION['check']!= 1 &amp;&amp; ($output == 'US' || $output== 'AU' || $output== 'GB' || $output== 'CA'))
{
$submission = $_POST['submission_id'];
$_SESSION['check']=1;
echo '&lt;div class="shareasale"&gt;&lt;img src="https://shareasale.com/sale.cfm?amount=0.00&amp;tracking=';
echo $submission;
echo '&amp;transtype=lead&amp;perlead=25.00&amp;merchantID=###" width="1" height="1"&gt;&lt;/div&gt;';
}
?&gt; 
</code></pre>

<p>I think there is a problem with the OR bit, because when I added an else if to check variables, I got $output as US and $_SESSION['check'] as blank. Which means the if statement should have run properly.</p>

<p>Does anyone have any idea why this isn't working?</p>
