I was wondering if it is possible to update the value of a PHP variable on click on an HTML element. I would listen for the click with jQuery's .click() and transmit some PHP with jQuery's .ajax() or one of the jQuery ajax functions and that request would increase the variable by 10 (+=10) ?
How can I do that?
Increase the variable's value for all users when any user clicks. Kind of like a Google +1 or Facebook like button. Except a user can click more than once. and even clicks don't undo.
Is there a way to do this without a database?