Secondly if you really dont want to write any code there is a similar programs you can download HERE
Code: Select all
var somejsvar = <?php echo $somephpvar?>; </script>
From here if you need to manipulate the variables using JS go right ahead if not just display them werever you need. By the way, if you do not need to manipulate data using JS i would skip the assigning vars process and use PHP variables right in the JS print statements...