i have a small problem regarding jquery/php.
in the last few days i built an interactive game.
excerpt:
counter++;
$("#counter").html("" + counter);
....
so the number of clicks is counted by the counter and displayed in a span.
my wish:
how can i make it possible that i get this value of the span by a form submit? the submit goes to another page so my idea was that i make a php variable out of it – but i have no clue how to do that 🙁
can you PLEASE give me a little hint or help? 🙂
thank you in advance!
ng jonathan2011
Have a hidden input element:
Assign the value of the counter to the hidden element using jQuery
Grab the value via $_POST or $_GET as such: