Call php query with javascript
<p>my Code </p>

<pre><code>&lt;script type="text/javascript" src="http://test.com/test.php"&gt;&lt;/script&gt;
</code></pre>

<p>the javascript is for a multidomain use , it must be like this it <strong>can't</strong> be changed </p>

<p>i need to make the javascript call the php with the host url as query</p>

<p>location.hostname</p>

<pre><code>&lt;script type="text/javascript" src="http://test.com/test.php?*location.hostname*"&gt;&lt;/script&gt;
</code></pre>

<p>what will need to put in the javascript ???
i know what to put in the php</p>
