I have various important variables that I need transfering from PHP to JS on the same page load. I am currently storing these variables in DOM element attributes and using jQuery to grab them out.
This works fine, although as some of the information is quite important I would rather this wasn't publicly visible in the DOM and 'hidden from prying eyes'.
So my question is: How to you transfer variables to JS or the DOM from PHP and keep them hidden from sight?
Cheers guys, hope you can help!