H
H
Helig2018-02-07 18:59:08
PHP
Helig, 2018-02-07 18:59:08

How to pass a variable (value) from javascript to php?

Hello I need to pass a variable from app.js file to index.php file and work with variable value already in php code. How to do this without rebooting or as quickly as possible.
Here's the thing for me. I request a qrcode from the user, decrypt and get a set of numbers (This is using JS), after that I send it to PHP. Next, Php makes a request to the database, finds out if this value is there and sends the result of the check back.
The difficulty is that I do not understand how to pass a variable without clicking on the button. Tell me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2018-02-07
@entermix

How to pass each value of a variable from a loop from php to js?
How to pass variable value from js to php?
... 100500 more similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question