I have done the research on setting a cookie and I cannot get it to set...
First I tried the data I needed...
After the above code doesn't work I tried a basic one...
And that is not working. My browser is set to accept cookies. What am I doing wrong?!
Thanks,
K
First I tried the data I needed...
Code:
if (isset($_POST['slocation'])!=""){
setcookie("slocation", $_POST['slocation'], time()+60*60*24*365*10;);
echo "SLOCATION=" . $_POST['slocation'] . "<br>"; //used to see if getting into the if statement...it gets here//
}
After the above code doesn't work I tried a basic one...
Code:
setcookie("user", "keith");
And that is not working. My browser is set to accept cookies. What am I doing wrong?!
Thanks,
K