I am new to php and I am confused with the following problem: I have a button called BtnAdd wich is surrounded with a form tag(POST)
Now I am trying to do +1 with each click. This is my code:
$counter = 0;
if (isset($_POST['BtnAdd']))
{
$counter++;
}
echo $counter
My problem is that each time I click the button it only returns 1 but it never goes up
If you have any idea please post.
;