|
Posted by Ian on 11/24/05 22:44
Japhy wrote:
> Hello,
> I need to save values typed into forms across several scripts, before
> the user actually 'submits' the form to update the mysql db.
>
> I have been exploring ways to do this, and looking for some guidance as
> to whether to use
> cookies or PHP session variables.
>
I'd use sessions for this, otherwise the user's data is being send back
and forwards in each HTTP request and response. Even with a secure
connection, you may also end up with potentially sensitive data left in
the plain test browser cookie file.
I keep an array of form inputs in my session and import them into each
form as it is generated, so common fields between forms get filled in
when the user moves on to a new form.
Ian
Navigation:
[Reply to this message]
|