WARNING: You're depending on the browser to tell you the referrer. Also be aware that if they bookmark the page, or just type it into the address bar, there IS no referrer.
Here is the referer variable
if($GLOBALS['HTTP_REFERER']=='http://www.shoppingcart.com'){
#you're good to go
}else{
like I said, it's possible they DID come from there but the browser didn't pass the referer.
}
By the way, you should run this script to learn about GLOBALS:
foreach($GLOBALS as $n=>$v){
echo $n . ":" . $v . "<BR>";
}
There's a lot of stuff there to work with. have fun.
Sam Fullman
Compass Point Media