No problem Sarah, there's nothing to forgive
And yes, you're right in assuming that this could work with other affiliates as long as they use a standard link structure.
I'm not sure, but I believe CJ uses somewhat dynamic links, so it wouldn't necessarily work with them. However, Share-a-sale does and it's the same technique I use on my datafeed and SAS affiliate sites.
~ Teli "Always willing to help whenever I can" Adlam
P.S. You can also combine this with mod_rewrite to produce clean URLs, for instance /go/dating/ instead of go.php?id=dating
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^go/([^/]+)/?$ /go.php?id=$1 [L]
With a little creativity, you can create a custom redirect script for each affiliate program and a custom mod_rewrite rule.