0
I’m having a doubt here and am unable to resolve since I am beginner in php.
I want to retrieve cookies and print on the screen a certain value that corresponds to the cookie, but I can only print 1 cookie.
Página que eu estou pegando o cookie
<?php
setcookie("Nome",$Valor,(time() + (7 * 24 * 3600 )));
$_COOKIE["Nome"];
?>
Página que eu estou exibindo os cookie
<?php
$Test = $_COOKIE["Nome"];
print_r($Test);
?>
I already tried echo instead of "print_r" and it didn’t work
I could not understand very well, you are only declaring 1 cookie, which other you want to show?
– Daniel Costa