Hi I am writing a script for an inhouse affiliate program for a site of mine, and I am wondering how do should I pass the referrer ID from the order page to the 2CO page, and then finally to the order confirmation page. I think that you can send a custom variable to 2CO in that way: https://www.2checkout.com/2co/buyer/purchase?sid=[COLOR=RED]******[/COLOR]&quantity=1&product_id=1&userid=<?php echo $userid ?> &referrerid=<?php echo $referrerid ?> Code (markup): where $userid and $referrerid are two variables I have set previously. Now, I suppose that 2CO passes these two variables to the confirmation page in someway. How do I access them with php? any help is greatly appreciated thanks!
The destination on the link should be a PHP document with: <? $userid = $_REQUEST['userid']; $referrerid = $_REQUEST['refferrerid']; ?> PHP: Now you can play around with the variables since they've now been assigned data from the URL. But, I'd reccommend using hashed cookies to send the data instead or people could inject their own data into the URL and mess about. Lee.