Re: Saving data with cookies

From: Date: Sun, 17 Mar 2002 21:57:40 +0000
Subject: Re: Saving data with cookies
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88853@lists.php.net to get a copy of this message
At 17.03.2002 18:21, you wrote:
Hi list, I'm developing a system to store Resumes, since my form has a lot of fields, about 70, i'd like to have the ability to save the filled ones if my user wants to finish it later. Wha'ts the best way to implement this kind of feature. Maybe I could use cookies, right?!?!? If so, how can I store this, multiples cookies, one big cookie, like an array?? this is possible?? Thank's in advance Rodrigo Peres your form has (70?) inputs like
input type="text" name="name_of_var[]" <-- this is an arrayvaraible every field the same name ! the form will then submit an (one) array, which could be stored in your database (For I´m not shure how it will be saved, I would save this array as an "something" separated text.) you send an cookie with a long lifetime to the client, this cookie is also stored in your DB. So a user wants to continue his form, you can select the users form via the cookie, and send an pre prepared form to the client. I think that´s all. If this user sends it back, you update the textfield, for his next continuation. But take a look on sending cookies, I found out, that the major browsers want different style cookies. HTH Oliver

« previous php.general (#88853) next »