[PHP] Getting referrer from other frame.

2001-05-11 Thread Tobias Talltorp

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Getting referrer from other frame.

2001-05-11 Thread Jean-Arthur Silve

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]