View Single Post
Old 07-13-2005, 02:54 PM  
BiggleJones
Confirmed User
 
BiggleJones's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
More PHP help needed

I am trying to implement the CCBill ID cookie code ( like http://www.spunkycash.com/ ) into my affiliate site. I have the code working on individual pages, but the variable/cookie clears everytime I switch pages. Any help on this would be awesome and thanks in advance:

<?
$ccbillid = "".$_POST['ccbillinput']."";
$cookie_life = time() + 31536000;
setcookie('ccbillid', $ccbillid, $cookie_life, '/', '.69gs.com');
$_COOKIE["ccbillid"] = $ccbillid;

if (!$_COOKIE["ccbillid"]){$ccbilloutput = "XXXXXX"; }
else {$ccbilloutput = $_COOKIE["ccbillid"]; }

if(isset($_COOKIE['ccbillinput'])) $ccbillid = $_COOKIE['ccbillinput'];
if(isset($_POST['ccbillinput'])) $ccbillid = $_POST['ccbillinput'];
?>
__________________
ICQ-291.596.343
BiggleJones is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote