Insert Javascript variable into PHP return
<p>I am sure this should be easy but I ahve been going crazy trying to get it to work:</p>

<pre><code>return '&lt;img border="0" src="'.$args['Image URL'].'?amount='.$args['invoiceAmount'].'&amp;trans_id='.$args['invoiceNumber'].'&amp;jrox_svalue_1=Sitename:javascript:document.write (sitename);" width="1" height="1"&gt;';
</code></pre>

<p>Essentially I need to inject the javascript varialbe "sitename" into the querystring value (jrox_svalue_1)for the image. </p>

<p>jrox_svalue_1=Sitename:javascript:document.write (sitename);</p>

<p>Any help would be apprecaited.</p>
