Re: HTTP_REFERER with Javascript Window

From: Date: Thu, 17 Aug 2000 15:54:48 +0000
Subject: Re: HTTP_REFERER with Javascript Window
Groups: php.general 
Request: Send a blank email to php-general+get-12269@lists.php.net to get a copy of this message
Jason, I know they can add data to the URL. But then I'm relying upon the site identifying themself correctly and honestly. I'm trying to find a way to be sure what site has sent the user to us. I need to identify to referrer and handle the user accordingly. The Javascript "parent.location" sounds like it would identify the site but I don't see a way to get that information into PHP before we create the page for the referred user. Any ideas? Thanks, Jeff > From: "Jason Brooke" <jason@qgl.org> > To: "Jeff Schwartz" <jeff_schwartz@yahoo.com>, > "PHP List" <php-general@lists.php.net> > Date: Thu, 17 Aug 2000 11:05:22 +1000 > Subject: Re: [PHP] HTTP_REFERER with Javascript Window > > > Pass the parent window's URI to the javascript window via the > querystring: > > your_javascript_window_file.php?referrer=http://<?php echo > $HTTP_HOST.$SCRIPT_NAME ?> > > ... then your javascript window can use $referrer > > > If you only need it for javascript, you can get the parent window's url > via > the document object - try document.write(window.parent.location); > > jason > > > > Is there a way to determine where a Javascript window originated? > > HTTP_REFERER comes up empty. __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/

« previous php.general (#12269) next »