Call php query with javascript
my Code 


    <script type="text/javascript" src="http://test.com/test.php"></script>
the javascript is for a multidomain use , it must be like this it **can't** be changed 
 

i need to make the javascript call the php with the host url as query

location.hostname

    <script type="text/javascript" src="http://test.com/test.php?*location.hostname*"></script>
what will need to put in the javascript ???
i know what to put in the php

Call php query with javascript
===

my Code 


    <script type="text/javascript" src="http://test.com/test.php"></script>
the javascript is for a multidomain use , it must be like this it **can't** be changed 
 

i need to make the javascript call the php with the host url as query

location.hostname

    <script type="text/javascript" src="http://test.com/test.php?*location.hostname*"></script>
what will need to put in the javascript ???
i know what to put in the php
