I'm try to build a snack machine where you can choose your snack, get the price and then click the button to pay.
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€
Why don't I get a "test" echo after I click the button?
Here is my code
<?php
if(isset($_GET['mars']))
{
$mars = "0,60";
echo "Bitte Zahlen Sie noch <input type=\"button\" value=\"$mars\"> Euro<br>";
echo "<input type=\"submit\" value=\"0,05\" name=\"fcent\">";
if(isset($_GET['fcent']))
{
echo "test";
}
}
?>
formyou are submitting with?