Hi
I set a cookie
setcookie("productname","Toys",time() + 3600 24 365 * 10);
in index page.
I set a refresh in php page
echo "<meta http-equiv='refresh' content='0;URL=index.php'>";
There is an echo $productname in the index.php
I visit the website index.php, cookie was set. But, $productname cannot be displayed without reload.
So, I added refresh to it.
But, it refresh continously and looped.
How can it just refresh one time?
Or, is there any way to let the $productname cookie to be displayed without refresh the index page?
Thanks for help