|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
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 |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Mar 2001
Location: Murrieta, CA
Posts: 3,620
|
Check first before your setcookie if a cookie exists.
Most likely only the FIRST page they see is through POST $_POST['ccbillinput'] so on the next page they go to the POST command will be blank and you will be setting a blank cookie.
__________________
I buy plugs Skype: Due_Global /Due |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: May 2002
Location: MI
Posts: 1,827
|
Code:
setcookie('ccbillid', $ccbillid, $cookie_life, '/', '.69gs.com');
$_COOKIE["ccbillid"] = $ccbillid;
Code:
if(!isset($_COOKIE['ccbillid']))
{
setcookie(...);
}
echo $_COOKIE['ccbillid'];
__________________
Latest MMA news. http://www.mmawrapup.com |
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: May 2004
Location: South Florida
Posts: 4,134
|
add session_start(); to each pg.
|
|
|
|
|
|
#5 | |
|
Confirmed User
Join Date: May 2002
Location: MI
Posts: 1,827
|
Quote:
__________________
Latest MMA news. http://www.mmawrapup.com |
|
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
Thanks AcidMax for the suggestion...still cant get it working. Anyone else have any ideas?
__________________
ICQ-291.596.343 |
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
maybe change:
PHP Code:
PHP Code:
just a guess i didnt test it. |
|
|
|
|
|
#8 | |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
Quote:
|
|
|
|
|
|
|
#9 |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
I didnt even notice that period, but I took it out and still same problem. Ive been trying to figrue this out for over a week now, and its the only thing left to do so I can re-launch my affiliate program.
UUUUggghhhhh ![]()
__________________
ICQ-291.596.343 |
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
you have that code on every page?
|
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
and its working fine for me i browsed from page to page, also closed my browser and came back... still good on my end
|
|
|
|
|
|
#12 | |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
Quote:
Should I just have the form post to one php page instead? And if so, what code should I put in the individual pages to call that variable?
__________________
ICQ-291.596.343 |
|
|
|
|
|
|
#13 | |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
Quote:
__________________
ICQ-291.596.343 |
|
|
|
|
|
|
#14 | |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
Quote:
|
|
|
|
|
|
|
#15 | |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
Quote:
AIM - Biggle Jones ICQ - 291596343
__________________
ICQ-291.596.343 |
|
|
|
|
|
|
#16 |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Downtown LA
Posts: 2,276
|
THIS JUST IN.....ALKY IS THE MAN (even with his Persian mullet)
__________________
ICQ-291.596.343 |
|
|
|