View Single Post
Old 11-03-2010, 06:15 AM   #1 (permalink)
gillweb
The Wanderer
 
Join Date: Feb 2008
Posts: 13
Thanks: 3
gillweb is on a distinguished road
Help Setting Cookie...

I have a cookie being set but the page needs to be refreshed for the cookie to be written to the page? I have the set_cookie command in the header of my file (before html tags) but even though I've confirmed with the browser the cookie was set It does not write the cookie to the page. After hitting refresh, it is then written to the screen?

Anyone ever come across this? Is there a fix or some thing i'm doing wrong? I have 3 php files, header. php, results.php and footer.php. The form action is to results.php but that page includes the header.php file so shouldn't the cookie be set during the header.php load and then results.php write the cookie?

gillweb is offline  
Reply With Quote