0
How to export PHP variable to external Javascript file?
Please provide a working example.. I am tired of finding solution on net.
4 Réponses
0
The same question from stackoverflow
https://stackoverflow.com/questions/2928827/access-php-var-from-external-javascript-file
0
This is not working... I already tried all methods. In Javascript file, the variable is undefined.
0
Can you provide some code?
0
Take a simple example like...
In 001.php file:
$id = "1234";
Now wanna get this value into Javascript file...