title: PHP submit button in echo
body: <p>I'm try to build a snack machine where you can choose your snack, get the price and then click the button to pay.</p>
  
  <p>Like:
  The price is 0,60 €
  0.05(button) 0.10(button) ....
  if you press 0.05-button the price will reduce to 0,55€</p>
  
  <p>Why don't I get a "test" echo after I click the button?</p>
  
  <p>Here is my code </p>
  
  <pre><code>&lt;?php
  if(isset($_GET['mars']))
  {
    $mars = "0,60";
    echo "Bitte Zahlen Sie noch &lt;input type=\"button\" value=\"$mars\"&gt; Euro&lt;br&gt;";
    echo "&lt;input type=\"submit\" value=\"0,05\" name=\"fcent\"&gt;";
    if(isset($_GET['fcent']))
    {
     echo "test";
    }
  }
  
  ?&gt;
  </code></pre>