F
F
ferondos2018-03-25 17:02:15
PHP
ferondos, 2018-03-25 17:02:15

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;
...
}

Adds +1 to elem.value on button click.
How to assign "input.value" to a variable in php for further sending to the mail?
Something like
$var= $_POST['input.value'];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2018-03-25
@bootd

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 question

Ask a Question

731 491 924 answers to any question