How to tie the counter to the button?

There are buttons
<input type="submit" name="money" value="10">
<input type="submit" name="money" value="20">

The values I pass via $_POST['money'].
switch ($money) 
case 10: echo "You Have $money roubles"; 
case 20: echo "You Have $money roubles";

I want to click on "10" 5 times, so out came "You Have 50 rubles"
July 9th 19 at 10:13
1 answer
July 9th 19 at 10:15
Store where it is "x", increase by pressing. Can be stored with cookies, in your data, in data attributes, the value from hidden input or in Bateganya or session if the summation operation occurs on the server.

Find more questions by tags HTMLPHP