Hi
I have a cookie that sets a username
I want to add to it full name, and email
so that when someone visits the site from a referral, all the information is displayed.
Can any one help give me the code
this is what i have at the moment
$debug = 0; //Set this to 1 if you wish it to display the refer else set to 0;
if(isset($HTTP_COOKIE_VARS["sDownlineReferal"]))
{
$username = $HTTP_COOKIE_VARS["sDownlineReferal"]; //use saved cookie information
} else if(isset($HTTP_POST_VARS["username"])) {
$username = $HTTP_POST_VARS["username"]; //Use post information
setcookie("sDownlineReferal",$username,time()+60*60*24*90); //Set cookie for future
} else if(isset($HTTP_GET_VARS["username"])){
$username = $HTTP_GET_VARS["username"]; //Use the get information
setcookie("sDownlineReferal",$username,time()+60*60*24*90); //Set cookie for future
} else {
$username = ""; //Set username to NULL
}
if($debug = 0)
{
echo "The refer is:- $username";
}
and how it dispays on the webpage
if ($username != "")
{
echo "<td class='stet' width='49%'>";
echo "<div align='right'>Referrer ID#:</div>";
echo "</td>";
echo "<td width='51%'>";
echo "<input type='text' name='ref_mem' size='20' value=$username class='box'>";
echo "</td>";
}
so i want the lower to show
Referrer ID#
Full Name
Email
anyone help ??