Jump to content

[SOLVED] If this doesn't work i need to know why else I am gonna cry


guymclaren

Recommended Posts

<?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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.