Re: Storing variables
| From: | Miguel Cruz | Date: | Thu, 21 Mar 2002 22:14:23 +0000 |
| Subject: | Re: Storing variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89600@lists.php.net to get a copy of this message | ||
On Thu, 21 Mar 2002, Erik Price wrote:
> On Thursday, March 21, 2002, at 03:39 PM, Miguel Cruz wrote:
>> 3. Store them in a database and just pass the index from page to page
>> using a hidden variable.
>
> Is this a frequently-used option? A while back I thought of using a
> scheme like this, but then thought to myself that it would be a lot of
> overhead for a multi-part form. I wonder how often this technique is
> actually done?
It depends on what you're trying to do. If the stuff's going to end up in
a database anyway, or if you really want to provide a robust transaction
environment that can survive disconnections and long delays, this is
useful.
If you're just doing an "add a comment to a guestbook" script, then it's
almost certainly not worth the effort.
miguel