Hi,
I have the code:
if($_POST['Submit'])
{
setcookie("mycookie",$_POST['txtName'],time()+(24*60*60*60),"/",".ximensions.com",0); //set cookie that expires in 60 days
}
Basically - on the page, the submit button calls the same page, and on submit, the setcookie statement runs.
It works fine, however, I'm finding I cannot use the information in the cookie immediately - I have to refresh the page to get the cookie information. Is there a way that I can set the cookie and later on in the code use the information in that cookie?