|
|
|
||||
|
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 |
|
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
small setcookie php question [pls help]
k coder is gone and I have to get this to work today and my skills are like zero
heres what I want: - landing page sets ccbill affiliate id - surfer goes to other page on same domain - surfer clicks straight www.bananabrandy.com url - aff id is set and aff gets credited heres what I got: http://www.dutchteencash.com/test/index.php?id=420671 <? $value = $id; setcookie("ccbill_referer", $value, time()+60*60*24*30); ?> AND http://www.dutchteencash.com/test/link.php <? echo $_COOKIE['ccbill_referer']; ?> ... ok now when I click the join form and check the aff isnt set :/ Pls help Bob
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
|
|
|
|
|
#2 |
|
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
maybe change:
$value = $id; to $value=$_GET['id']; ??
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
|
|
|
|
|
#3 | |
|
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
Quote:
no clue why its not workin :/
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
|
|
|
|
|
|
#4 |
|
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
ok it does display sorry but the cookie for the aff isnt set
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Jul 2004
Location: SW Florida
Posts: 916
|
$value = $_GET['id'] ;
if ( !isset( $value ) ) { $value = $_COOKIE['CCBILL_REFERRER']; if ( !isset( $value ) ) { setcookie( 'CCBILL_REFERRER', $value, time() + 60 * 60 * 24 * 30, '/', 'domain.com', 0 ); } } else { setcookie( 'CCBILL_REFERRER', $value, time() + 60 * 60 * 24 * 30, '/', 'domain.com', 0 ); } This will check for the existence of a referrer from the clicked link then double-check to see if there is already a referrer for this cookie name. If none of that exists it will set a new cookie. Are you trying to pass the cookie from one domain to another? If you are you can't do that with plain old cookies...at least that's my understanding of cookies. But you can still accomplish that task using cookies and sessions and some creative thinking.
__________________
ICQ: 148.167.599 |
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Jul 2006
Posts: 162
|
Quick get a new coder
|
|
|
|
|
|
#7 | |
|
I like Dutch Girls
Join Date: Feb 2003
Location: dutchteencash.com
Posts: 21,684
|
Quote:
I cant get it to work somehow, lemme hit you up thanks!
__________________
![]() ICQ 16 91 547 - SKYPE dutchteencash bob AT dutchteencash DOT com ... did you see our newest Sweet Natural Girl Priscilla (18)? |
|
|
|
|
|
|
#8 |
|
So Fucking Banned
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
|
ugh, don't you have to read the cookie
|
|
|
|
|
|
#9 |
|
...
Join Date: Jan 2006
Location: Maryland ICQ:87038677
Posts: 11,542
|
goodluck getting it to work
__________________
... |
|
|
|
|
|
#11 |
|
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
if you are still having issues, and want to toss a few bucks for someone to look into it, you can hit me up icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
|
|
|