You can use getenv("HTTP_REFERER")
See the PHP docs for more info:
http://www.php.net/manual/function.getenv.php
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bob Hutchinson
> Sent: Friday, October 27, 2000 2:25 AM
> To: FreeTrade
> Subject: Re: [FreeTrade] Adding affiliate link tracking
>
>
> There is an environment variable HTTP_REFERER which works in
> perl, don't know
> if it can be accessed in php...
> At 16:20 26/10/00 , you wrote:
> >Has anyone tried adding the ability to track incoming hits from
> an affiliate
> >site? My client wants to be able to track anyone who comes to
> his site from
> >a link on an affiliate's page. Then, the fact that the visitor came from
> >that link should be recorded on the invoice so that when he does
> an invoice
> >dump, he can see which sales were generated by that link.
> >
> >I've tried using a redirect page that sets a cookie, but ran into some
> >browser compatibility problems. Also, I I tried adding a field to the
> >INVOICE table in the database for saving this information, but
> this caused a
> >bunch of problems with incomplete sales transactions.
> >
> >Has anyone been able to add this functionality?
> >
> >Alan McCoy
> >
> >
> >
> >------------------------------------------------------------
> >To subscribe: [EMAIL PROTECTED]
> >To unsubscribe: [EMAIL PROTECTED]
> >Site: http://www.working-dogs.com/freetrade/
> >Problems?: [EMAIL PROTECTED]
> >
>
> bye
> Bob Hutchinson
> [EMAIL PROTECTED]
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Site: http://www.working-dogs.com/freetrade/
> Problems?: [EMAIL PROTECTED]
>
>
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]