thanks brandon!
here's how i did it...
my agents have links to my site that look like this...
www.mysite.com?AGENT_ID=XXX
when a user comes to my front page, i write a cookie based on the referer ID:
if($AGENT_ID) {
setcookie("agentid", $AGENT_ID, mktime(18,30,0,5,12,2020));
then, on the account sign-up page i read the cookie and set the agent ID:
if(isset($agentid)) $AGENT_ID = $agentid;
thanks again for the idea,
mike