adamriley Posted July 6, 2010 Share Posted July 6, 2010 As you will guess after this im rubbish (new) to javascript how can this be done ---------------------------------------------------------------------------------------------------------------- <script language="javascript" type="text/javascript"> var url = document.location.href; window.location="http://localhost/blocked.php?url=+url"; </SCRIPT> ---------------------------------------------------------------------------------------------------------------- Link to comment https://forums.phpfreaks.com/topic/206921-url-and-redirect/ Share on other sites More sharing options...
adamriley Posted July 7, 2010 Author Share Posted July 7, 2010 Bumpy Link to comment https://forums.phpfreaks.com/topic/206921-url-and-redirect/#findComment-1082496 Share on other sites More sharing options...
jug Posted July 7, 2010 Share Posted July 7, 2010 nearly <script type="text/javascript"> var url = document.location.href; window.location = 'http://localhost/blocked.php?url=' + url; </script> Link to comment https://forums.phpfreaks.com/topic/206921-url-and-redirect/#findComment-1082711 Share on other sites More sharing options...
adamriley Posted July 9, 2010 Author Share Posted July 9, 2010 Thanks for your reply Link to comment https://forums.phpfreaks.com/topic/206921-url-and-redirect/#findComment-1083655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.