PDA

View Full Version : Need CCBill Link Generator Script!


mariah
2007-09-15, 08:37 PM
Does anyone have the script that allows the affiliate to enter his/her assigned CCBill ID for my program and it auto generates the FHG's link and tour links with their IDs?

I hate sending out those emails with the big XXXXXX in the links and have to hope that they get it right...as of today I get 3 or 4 affiliate account signups with no ID assigned to them because they dont get the link codes right! I don't mind the extra 60% that they are missing, but at the same time they deserve the credit for the sales!

Help would be beautfiful!

xoxoxo
Mariah
|headbang|

Llam4
2007-09-16, 04:59 AM
You have a few options: Pull their ID out of your user database, pull their ID out of their login cookie or ask them to input their ID into a textbox to be generated.

After that, it's a simple as:
echo "http://www.pornsite.com/page.php?id=$IdVar";

IdVar being the user ID you extracted.

I'm assuming you use PHP because your tracking page is PHP.

virgohippy
2007-09-18, 04:17 AM
This should do the simple form/textbox process Llam4 described. Anything more would have to be set up by someone familiar with your existing script.

The form to get the CCBill ID:

<form name="form" method="post" action="page.php">
<input name="affiliate_ccbill_id" type="text">
<input name="submit" type="submit" value="Set ID">
</form>

The code to get the variable passed by the form:
<?php
$affiliate_ccbill_id = (int)$_POST['affiliate_ccbill_id'];
if ($affiliate_ccbill_id==0) {
$affiliate_ccbill_id = "XXXXX";
}
?>