title: PHP - Simple Echo inside If-Else statement not working
body: <p>I have been searching around for the solution for so long, but every time the person who asked the question is way higher than my level. I'm only a young beginner, and I can't find anything that could ever solve my problem. Every PHP-Checker says my code is fine, but here is the problem:</p>
  
  <p><strong>I put an Echo in my If-Else Statement, but without any errors, or syntax problems, the Echo'd Text simply does not display on my site.</strong></p>
  
  <p>Now, I don't know what to do. But I'd like to ask anyone reading this to 
  <em>Pretend I'm Five years old and keep it simple</em>, because I can't figure it out. I don't use SQL or any weird trickery as far as I know, and this is part of my school project, so it should be possible to do very simply.</p>
  
  <p>The Code:</p>
  
  <pre><code> &lt;form action='' method='post'&gt;
          &lt;table&gt;
              &lt;tr&gt; 
                  &lt;td&gt; banana: &lt;/td&gt;
                  &lt;td&gt;&lt;input type='text' name='product1' /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt; 
                  &lt;td&gt; candy: &lt;/td&gt;
                  &lt;td&gt;&lt;input type='text' name='product2' /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt; 
                  &lt;td&gt; tv: &lt;/td&gt;
                  &lt;td&gt;&lt;input type='text' name='product3' /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt; 
                  &lt;td&gt; mouse: &lt;/td&gt;
                  &lt;td&gt;&lt;input type='text' name='product4' /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input type='submit' value='submit' /&gt;&lt;/td&gt;
              &lt;/tr&gt; 
          &lt;/table&gt;
      &lt;/form&gt;
  
      &lt;?php
          if (isset($_POST['submit'])) {
              $iProductammount1 = $_POST['product1'];
              $iProductammount2 = $_POST['product2'];
              $iProductammount3 = $_POST['product3'];
              $iProductammount4 = $_POST['product4'];
  
              $fprice1 = 5.00;
              $fprice2 = 0.99;
              $fprice3 = 200.00;
              $fprice4 = 15.00;
  
              $fProductprice1 = $iProductammount1*$fprice1;
              $fProductprice2 = $iProductammount2*$fprice2;
              $fProductprice3 = $iProductammount3*$fprice3;
              $fProductprice4 = $iProductammount4*$fprice4;
  
              $fTotal = $fProductprice1+$fProductprice2+$fProductprice3+$fProductprice4;
  
  
              if ($fTotal &gt; 250) {
                  $fDiscountprice = $fTotal*0.85;
                   $sDiscount = '15%';
              } else if ($fTotal &gt; 100 ) {
                  $fDiscountprice = $fTotal*0.90;
                   $sDiscount= '10%';
              } else {
                  $fDiscountprice = $fTotal;
                  $sDiscount= '0%'; 
              }
  
              echo "The usual price is &amp;euro; ".number_format($fTotal,2,',','.').". You received a discount of ".$sDiscount." . The new price is &amp;euro; ".number_format($fDiscountprice,2,',','.');
  
          } else {
  
          }
      ?&gt;
  </code></pre>
  
  <p>I used "isset" to only do all of this when the button "submit" is pressed, which does seem to work, since putting an Echo in between the Else brackets does actually Echo it properly. However, the Echo at the end of the If-statement does not show up at all. After pressing submit, simply nothing happens at all. The numbers filled in the  disappear, and you can start all over again.</p>
  
  <p>I'd also like to mention that there is a  tag and all the necessary things above this, but I didn't feel like they were worth mentioning.</p>
  
  <p>Again, the point of interest is the final Echo line at the end of the code. Please help me figure this out!</p>
  
  <p>Explain to me like I'm 5, thanks for reading :)</p>