Lionel
09-24-2005, 07:45 PM
Can cookies be set dynamically?
I have this:
if ($_GET['add'] == "yes")
{
$value = '<a href=view.php?id=$id>$mycompany</a>';
setcookie("mycookie", $value, time()+29030500);
it returns
$mycompany as the cookie value
and when I set the cookiename as $mycompany instead of mycookie, nothing happens.
I have this:
if ($_GET['add'] == "yes")
{
$value = '<a href=view.php?id=$id>$mycompany</a>';
setcookie("mycookie", $value, time()+29030500);
it returns
$mycompany as the cookie value
and when I set the cookiename as $mycompany instead of mycookie, nothing happens.