I created a "wizard" of sorts using forms & php. Each page asks a question, then the following page stores the data into MySQL db and asks some more questions. As it's continuing on the path, certain variables are to be carried to each page through hidden form fields.
On a couple of pages, I noticed that it forgets these persistent variables once in a while when I first arrive to the page. When/if I refresh, (and repost form) it remembers what it was supposed to and away we go. And it's not all the time either. It's hit and miss.
I'm really puzzled on this deal. I've tried to sleep(); once in a while so it has time to think before it starts loading and that doesn't seem to work. I put the main PHP code at the end of a page and that seemed to work fine, however I need the information at the top in order for the rest of the page to work.
Any thoughts as to why this is happening?