I've got a form with about 20 fields in it. I use the extract function to put all the fields into variables, but whats the best way to put them all into a single cookie without doing it individually for each variable?
Why does it need to be set into a cookie. Why not use a database or sessions.
you can put all the different form variables into an array and use the serialize() function to store them in a cookie, and then when you want the variables back, just unserialize() the cookie and get all the info back just as it was.