Call PHP variable in a separate JS document?

Douglas

New member
Hi. I have a JS oriented question.
How do I get a variable from a separate document? The other file is written in PHP. I know the names of the variables and the name of the file and everything, but I just can't access it to put the javascript into the same file. Is there any way of doing this?
Let's say the following:
file name: dashboard.php
variable:(is an array) $user
 


Write your reply...
Back
Top