I'm trying to figure out how I would go about using cookies in my situation...
I have a form that people can fill out, some of the fields such as the name, address, email, etc. are required.
I want to set some cookies after the user has entered their information so if/when the user returns the the site, their information will already be in the form. I know how cookies work and I know how to set them. I know that cookies have to be set before anything else is done.
So, my question is, how can I make sure all of the required info is filled in, and if it is, then set the cookies?
I cant set the cookies without any validation of the info being submitted but since I want to validate the information I need to execute some code before the cookies would be set and since cookies need to be the first thing done, I am stumped.