Enabling Tradedoubler Link for PHP Site

Status
Not open for further replies.

davidbrett

New Member
Hi All,

I am having difficulty converting a Tradedoubler Script in a PHP enabled Script for one of our sites.

Here is the code
<script type="text/javascript">
var uri = 'http://impie.tradedoubler.com/imp?type(js)g(19073644)a(1765141)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset=""></sc'+'ript>');
</script>

I have tried adding \" instead of " in all instances.

Should I also do the same for the single quotes. ie ' becomes \'

Any help would be greatly appreciated.
 

mneylon

Administrator
Staff member
Are you using smarty of just plain PHP?
 
Status
Not open for further replies.
Top