quillspirit
9th July 2004, 08:06 AM
Hello,
I am trying to merge Post Affiliate Pro 2.2.1 with the current version of phpCOIN (phpcoin.com) - In the order form, there is a text field for the customer to type in the name of the person that referred them. I was wondering how I could "pre-fill" that field with the affiliate id, if they came in through an affiliate link.
I found this in one of the php function files for phpCOIN, thought it may help...
$_cstr .= '<INPUT TYPE=hidden name="ord_referred_by" value="'.$adata[ord_referred_by].'">'.$_nl;
I have Affiliate Pro setup to hold a cookie, and all affiliate links go to my .html index page... so I guess I would need to read the cookie to get the affiliate id, then insert into the form field above, which is on a .php order page. How do I do this?
Thanks! :)
I am trying to merge Post Affiliate Pro 2.2.1 with the current version of phpCOIN (phpcoin.com) - In the order form, there is a text field for the customer to type in the name of the person that referred them. I was wondering how I could "pre-fill" that field with the affiliate id, if they came in through an affiliate link.
I found this in one of the php function files for phpCOIN, thought it may help...
$_cstr .= '<INPUT TYPE=hidden name="ord_referred_by" value="'.$adata[ord_referred_by].'">'.$_nl;
I have Affiliate Pro setup to hold a cookie, and all affiliate links go to my .html index page... so I guess I would need to read the cookie to get the affiliate id, then insert into the form field above, which is on a .php order page. How do I do this?
Thanks! :)