if ($_GET['add'] == "yes") { $value = '<a href=view.php?id=$id>$mycompany</a>'; setcookie("mycookie", $value, time(+29030500));