Enabling Tradedoubler Link for PHP Site

Not open for further replies.
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>');

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.
Not open for further replies.
Award-winning Mac antivirus and Internet security software