http://www.paphoscarhire.com/index.php?aff=338297
I set in hp above the
but after I call to a webpage in the application[booking form https://pafoscarhire.com/php/booknow-euro.php ], theCode:<?php session_start( ); // if (!isset($_SESSION['affiliate']) || $_SESSION['affiliate'] == Null) $affiliate = '10000'; //default value: $affiliate = '10000'; //default value if (isset($_COOKIE['aff']) && ($_COOKIE['aff'] != Null)) { $affiliate = $_COOKIE['aff']; } else if (isset($_GET['aff']) && ($_GET['aff'] != Null)) { $affiliate = $_GET['aff']; // $affiliate = "{$_GET['aff']}"; setcookie("aff", $affiliate, time()+60*60*24*90, "/"); // 3 months // $_COOKIE['aff'] = $affiliate ; } else { $affiliate = '10000' ; setcookie("aff", $affiliate, time()+60*60*24*90, "/"); } $_SESSION['affiliate'] = $affiliate ; ?>
I do not get a value forCode:<?php $affil = $_COOKIE['aff']; echo $affil; // $_COOKIE['aff']; // $email_text; ?>
$_COOKIE['aff'];
how to test what value this var has ? how to debug ? the https:// page can echo cookie vars ? may have $_COOKIE['aff']="" ?


Reply With Quote
Bookmarks