Answer the question
In order to leave comments, you need to log in
How to assign elem.value from JS to a variable in php?
there is such a function in the script
function plus() {
...
input.value = parseInt(input.value) + 1;
...
}
$var= $_POST['input.value'];
Answer the question
In order to leave comments, you need to log in
use ajax and when increasing the value, send a request with the value, and already in php process and send
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question