Re: Getting referrer from other frame.

From: Date: Fri, 11 May 2001 15:41:31 +0000
Subject: Re: Getting referrer from other frame.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52473@lists.php.net to get a copy of this message
if you have two frames, for example : frame1 : the top frame frame2 : the bottom frame. in the bottom frame : <script language="javascript"> var ref=<?echo $HTTP_REFERRER;?> </script> in the top frame : <script language ="javascript">
        document.write("refferrer is"+parent.frame2.ref)
</script> Well, something like that I guess... Problem could be the top frame loaded before the bottom frame. In that cas, the "ref" javascript variable may not be initialized. At 16:20 11/05/01 +0200, Tobias Talltorp wrote:
Sorry about the post before (if there was one)... It was sent by accident. Here is the complete question: I would like to tweek the getenv("REMOTE_ADDRESS"); a little. I want my top frame to print the referrer for the frame below. I'm not sure if this should be done with PHP or javascript. Sounds like javascript though... Any thoughts? // Tobias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
---------------------------------------------------------------- EuroVox 4, place Félix Eboue 75583 Paris Cedex 12 Tel : 01 44 67 05 05 Fax : 01 44 67 05 19 Web : http://www.eurovox.fr ----------------------------------------------------------------

« previous php.general (#52473) next »