I am trying to make a javascript code were when the user clicks a botton, it adds to the amount $myamount here is what I have so far, but it completely dosn't work. (im new to javascript)
every time the button is hit, it counts up. then when the user wants, at a certain point (lets say after 5 clicks) they can click the "submit" botton. this will take then to a new php page, witch will inject SQL (it will rack up a feild by 5) but to do this, php needs to now how many times the button was clicked.