Hello All,
I am parsing some XML with PHP and push it into a PHP variable. I want to pass this to a Javascript variable to use in a javascript script. How do you do this?
Here is a small example of what I am trying to do but does not work:
Thanks,
Zych
I am parsing some XML with PHP and push it into a PHP variable. I want to pass this to a Javascript variable to use in a javascript script. How do you do this?
Here is a small example of what I am trying to do but does not work:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var wholemessage=''
//text: change to your own
wholemessage='<?php echo $TheWholeMessage; ?>'
function start(){
if (document.all) return
....
Thanks,
Zych