Re: Newbie
| From: | Julio Nobrega Trabalhando | Date: | Wed, 09 Jan 2002 16:32:02 +0000 |
| Subject: | Re: Newbie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79926@lists.php.net to get a copy of this message | ||
Both ways. I would use session if the form(s) must be completed at once.
If someone can save forms 1 and 2 and another day return to complete the
remaining steps, then a database might be better.
Also, if you use a database to hold temp info that must fly between the
forms, you would have to write more code (of if/else {
SELECT/INSERT/UPDATE/DELETE), and the performance overhead of so many db
queries might not be a good idea.
Can't afirm 100% since I don't know your complete enviroment, but from
what you told and my personal experience, I would go with sessions.
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
"Kevin P" <webmaster@odellwebdesign.com> wrote in message
news:20020109160530.58658.qmail@pb1.pair.com...
> Hi
>
> I am trying to keep information that is input via a form. This form may be
> used 1, 2, 3, 4 or more times for each entry. Meaning that the form will
be
> filled out and added then another of the same form filled our and so on
> until the person clicks the the complete button.
>
> Can I hold this info by session or do I have to insert it into the
database
> after each time? I would rather not put it into the database until the
> session is complete and they have a chance to verify their entry.
>
> Thanks
> Kevin
>
>