NYCPHP Meetup

NYPHP.org

[nycphp-talk] Tracking clicks to client site from a banner

jon baer jonbaer at jonbaer.net
Tue Mar 16 23:35:35 EST 2004


You could really do the same thing ... log it to MySQL and redirect the
user:

<a href="http://example.com/link.php?id=123&ref=456">link</a>

$link_id = $_POST['id']; $referral_id = $_POST['ref'];
// log, increment counter, grab link, etc.
header("Location: [what 123 points to]");
exit;

El-cheapo affiliate program :-)

----- Original Message -----
From: "Jeff Siegel" <jsiegel1 at optonline.net>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Tuesday, March 16, 2004 11:23 PM
Subject: Re: [nycphp-talk] Tracking clicks to client site from a banner


> I was thinking along similar lines. I just need to track click throughs.
>
> Jeff





More information about the talk mailing list