[PHP] More on images...

2002-01-03 Thread Matthew Walker

Related to my last question about the cookies in images, is there any
way to get the referrer from the calling page without passing it as an
argument to the image generation script?
 
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.310 / Virus Database: 171 - Release Date: 12/19/2001
 

--
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] More on images...

2002-01-03 Thread Matthew Walker

Buh. That's the problem. There's no assurance that in will be used from
a PHP script, so I can't do that. Mrrr.

Let me explain what I'm doing, and someone can pipe up if they have a
better idea.

I'm writing a tracking module for a shopping cart system, so that we can
track where people came to our site from, and correlate that information
with whether or not they ordered. Right now, I'm trying to do this with
a php script in an image tag, so that I can set the cookies I need.
However, I need to be able to get the referrer from the page that is
calling the image, and I can't assume it's php. Any advice?

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Billy Harvey [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 3:25 PM
To: Matthew Walker
Subject: Re: [PHP] More on images...

On Thu, 2002-01-03 at 16:51, Matthew Walker wrote:
 Related to my last question about the cookies in images, is there any
 way to get the referrer from the calling page without passing it as an
 argument to the image generation script?
  
 Matthew Walker
 Ecommerce Project Manager
 Mountain Top Herbs

Matthew, you're going to have to save it as a variable somewhere to be
able to retrieve it.  If you have session management then you could just
register the variable and it would exist on the next page.

Billy



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

--
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] More on images...

2002-01-03 Thread Matthew Walker

I solved it using Javascript to get the referrer of the parent doc, and
pass it as a get request.

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Matthew Walker 
Sent: Thursday, January 03, 2002 3:46 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] More on images...

Buh. That's the problem. There's no assurance that in will be used from
a PHP script, so I can't do that. Mrrr.

Let me explain what I'm doing, and someone can pipe up if they have a
better idea.

I'm writing a tracking module for a shopping cart system, so that we can
track where people came to our site from, and correlate that information
with whether or not they ordered. Right now, I'm trying to do this with
a php script in an image tag, so that I can set the cookies I need.
However, I need to be able to get the referrer from the page that is
calling the image, and I can't assume it's php. Any advice?

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Billy Harvey [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 03, 2002 3:25 PM
To: Matthew Walker
Subject: Re: [PHP] More on images...

On Thu, 2002-01-03 at 16:51, Matthew Walker wrote:
 Related to my last question about the cookies in images, is there any
 way to get the referrer from the calling page without passing it as an
 argument to the image generation script?
  
 Matthew Walker
 Ecommerce Project Manager
 Mountain Top Herbs

Matthew, you're going to have to save it as a variable somewhere to be
able to retrieve it.  If you have session management then you could just
register the variable and it would exist on the next page.

Billy



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002
 

--
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]