title: PHP If function does not work
body: <p>i am new to this PHP and would like some suggestion why my calculation does not work.</p>
  
  <pre><code>$income = number_format($_POST[income], 2);
  $year = $_POST[year];
  if ($income &gt;= 0 &amp;&amp; $income &lt;= 18200){ 
      $taxo = number_format(0,2);}
  elseif ($income &gt;= 18201 &amp;&amp; $income &lt;= 37000){
      $taxo = number_format($income * 0.19 ,2);
  }
  </code></pre>
  
  <p>and somewhere down in my HTML file</p>
  
  <pre><code>tax on income
  $
  echo $taxo;                 
  </code></pre>
  
  <p>However when i run the file, $taxo is alwasy 0 (?) .can anyone please advise where i got it wrong?</p>
  
  <p>Thanks in advance</p>
  
  <p>Albert  </p>