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
you’re not trying to get the string “location.hostname”, right? You want the actual hostname from the URL? in that case you have to write the script include as a document.write.
Something like that… WHY are you doing this?