php3-list | 2000051
Date: 05/16/00
- Next message: Zurowski, Gregor (EP/OCI): "AW: [PHP3] Oracle 8/PHP3 on Win NT"
- Previous message: Mike Sheldon: "RE: [PHP3] Macmillian "Oracle8i for Linux" pack?"
- In reply to: Christian: "[PHP3] Cookie Confusion .."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Data in a cookie set on one page is not available till reload or the next
page (unless the variable name and the cookie name are the same ;-)
One (simplistic) way might be to create an associative array of the
"name=Value" pairs and pop that into a cookie (serialize() before setting
the cookie)
Then unserialize() the cookie return value to recover the array of the
"name=Value" pairs on the next page and recreate the Name=Value pairs for
the variables.
Otherwise (brute force method) on each succeeding page you can stuff the
POST_VARS array into hidden FORM variable (ugly)
If I know how to use 'shared memory' this message would become _way_ too
long, instead of just 'too long'
HTH
Tom Henry
At 03:16 AM 5/16/00 +0000, Christian wrote:
>Hi all,
>
>I have a situation where I collect user details via a form ..
>I do not wish to enter them into MySQL straight away ..
>As further processing, collection and validation has to be done ..
>Therefore if one area fails no entry will be made ..
>So I need a way of temp storing this data over multiple pages ..
>
>I thought of setting a cookie .. But am having problems ...
>What is the procedure for setting a cookie to form contents ..
>--> where is the setcookie code() called, current or called page ?
>
>Can someone please help with the cookie code ..
>Or maybe suggest a better way of temp storing the form data ..
>
>Thanks heaps,
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe <email protected>
>To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin <email protected>
--------------------------------------------------------------------
Strategic Business Systems (978) 745-2332
http://BusinessWebs.com/
--------------------------------------------------------------------
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Zurowski, Gregor (EP/OCI): "AW: [PHP3] Oracle 8/PHP3 on Win NT"
- Previous message: Mike Sheldon: "RE: [PHP3] Macmillian "Oracle8i for Linux" pack?"
- In reply to: Christian: "[PHP3] Cookie Confusion .."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

