This question already has an answer here:
I try to use an onclick function. If the user clicks the html button a js function should be done. For this function I need some variables of the php code. How do I get them? If I get them I have to change them. So how do I got them (the changed variables) to php? I thought that ajax could perhaps help me. But how do I use ajax?
</div>