
perlmonkey
Deleted
Feb 6, 2000, 6:37 PM
Post #1 of 4
(305 views)
|
|
user validation
|
Can't Post
|
|
Hello, I'm trying to create my own affiliate program. I've created small scripts which will let me sign up affiliates, issue usernames and passwords to them, log visits from affiliate links and also display the full list of accesses by all affiliate links. Problem is, the script that redirects by way of the referral link simply uses the $ARGV to get user name (id), example: http://go.to.tld/exec/ref.cgi?mica1 where mica1 is the user [aka - $ARGV] it then redirects to my homepage. This works whether the link contained a valid user or not. I need to check one of the log files created by the membership agreement (refid.log), determine if the name in the requested link actually exists. If it does, then I need to append my affiliate referral log file as usual, but if it doesn't I still need to redirect to the homepage. Any help is appreciated. Once this mystery is unraveled there are other concerns
|