0
conversion from javascript to php
How to store a value in a JavaScript variable into a php variable?
5 Answers
+ 3
on client side JavaScript you have a variable.
send a request to a php script with ajax.
use $get[] or $post[] depending on how you sent the request to cache the variable.
ez pz
you can save the variable in an sql database if you want
+ 2
You cant, javascript run in client (browser) meanwhile php run in the server
You can use ajax but it basicly just make a request to php page
+ 2
With ajax yeah its possible
Or simply use javascript back end, but still js on the client and js on the server is seperated
0
No there is a way to run javascript in pho and store values as a php variable
0
đ