Guenther Schmidt wrote:[color=blue]
> Windandwaves
>
> this is acutally rather easy.
>
> the link that people click on should be something like:
>
> <a href="/redirect.php?destinationURL=www.cnn.com">www.cnn.c om</a>
>
>
> in redirect.php
>
> you would code whatever is necessary to write the destination URL
> into the database and then redirect the visitor to the intended
> destination by doing:
> header ('Location: '.$_REQUEST['destinationURL']);
>
> that's all.
>
> If you want to find out *where they come from* there is a variable
> called HTTP_REFER or something like that. Study the output of
> phpinfo(); to find the exact name.
> There is a tutorial/article for exactly this called "where they went,
> where they came from" on
http://www.phpbuilder.com
>
> Good luck!
>
> Günther
>
>
>
>
> windandwaves wrote:[color=green]
>> Hi Folk
>>
>> I was wondering if it is possible to find out what people click on,
>> using PHP.
>>
>> For example, I have a PHP page with an email link and some third
>> party links (e.g.
www.someone-else.com). I want to know where
>> people go. My own solution would be to make the link not to an email or a
>> third-party website, but to another page along the lines of
>>
>> <?php
>> //check out where it came from and where it is going
>> //write info to database
>> header = {where it should be going}
>>
>>
>>
>>[color=darkred]
>>>[/color]
>>
>> I am not sure if you can do this with email, but I am also wondering
>> if there is an easier/smarter way to do this.
>>
>> Cheers
>>
>> - Nicolaas[/color][/color]
Thanks a lot Günther.