Passing Variables From PHP To Javascript
February 19, 2009 – 10:22 am
Sometimes you need to pass variables – probably URL parameters – to a JavaScript script in a separate file that’s being called from a web page. I looked at a few different solutions on the web, but i didn’t find anything i liked, so i worked out my own approach.