SOLVED
I am trying to use a php variable in javascript.
At the moment I am using a fixed variable
PHP Code:
$articleID = 5;
Then outputting it to the page to declare a javascript variable
Code:
var articleid = "<?php echo $articleID; ?>";
Then trying to us it within a string
"FlashVars", "fileURL=../uploadedfiles/+ articleid + .gpx&key=ABQIAAAAOQBC.........
Can anyone tell me what I am doing wrong? I am not very used to Javascript and perhaps I am going about it totally the wrong way.
Help!
Gordon