guymclaren Posted September 16, 2008 Share Posted September 16, 2008 <?php $coid = $_COOKIE["affiliate"]; if ($coid == NULL) { $myid = $_get['aff']; if ($myid != NULL){ setcookie("affiliate","$myid"); } else { setcookie("affiliate","MCL01"); } } ?> [code] It happily checks to see if the cookie exists, then it does not $get the aff, because it always sets cookie with affiliate as MCL01. Can anyone tell this ex ASP idiot why? pretty please [/code] Link to comment https://forums.phpfreaks.com/topic/124496-solved-if-this-doesnt-work-i-need-to-know-why-else-i-am-gonna-cry/ Share on other sites More sharing options...
envexlabs Posted September 16, 2008 Share Posted September 16, 2008 change $_get to $_GET Link to comment https://forums.phpfreaks.com/topic/124496-solved-if-this-doesnt-work-i-need-to-know-why-else-i-am-gonna-cry/#findComment-642918 Share on other sites More sharing options...
guymclaren Posted September 16, 2008 Author Share Posted September 16, 2008 I love you, do you want to have my babies? Link to comment https://forums.phpfreaks.com/topic/124496-solved-if-this-doesnt-work-i-need-to-know-why-else-i-am-gonna-cry/#findComment-642921 Share on other sites More sharing options...
envexlabs Posted September 16, 2008 Share Posted September 16, 2008 I'm going to have to pass Link to comment https://forums.phpfreaks.com/topic/124496-solved-if-this-doesnt-work-i-need-to-know-why-else-i-am-gonna-cry/#findComment-642923 Share on other sites More sharing options...
guymclaren Posted September 16, 2008 Author Share Posted September 16, 2008 Thank you big time Link to comment https://forums.phpfreaks.com/topic/124496-solved-if-this-doesnt-work-i-need-to-know-why-else-i-am-gonna-cry/#findComment-642926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.