Re: Multipage form redux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"André Medeiros" <andre.caum@xxxxxxxxx> wrote in message
news:1122470550.3613.0.camel@xxxxxxx
> On Wed, 2005-07-27 at 07:51 -0400, Jack Jackson wrote:
> > Hi,
> > I have searched the archives and seen links to tutorials at phpclasses
> > (which seem to be down) and not found an answer to my question:
> > I have a long form I want to break into seven pages. Rather than pass
> > values from page to page as hidden, I'd rather write the results to the
> > db after each page then move on.
> >
> > Anyone know of any tutorials on this?
> >
> > Thanks in advance,
> > JJ
> >
>
> That's not a very good idea. Imagine the user gets to the fourth form
> and gets a cup of coffee, or goes out to lunch. By the time he gets to
> the computer he might have lost the session, thus having data on your DB
> that is wasting space.
>
> And what if the user closes the browser window? :)
>
> Bad bad idea.

What if the form takes ages to fill out, and the user has to go away and
find out other information, then wants to come back to the form and see it
pre-filled? For an insurance quote, say?

It could be a good idea under those circumstances. You can always delete all
incomplete data with a cron job every week or so if needs be.

Do you know how to write data to a db? The mechanics of what you want to do
are not especially complex.

page 1
form vars
page 2
request form vars, write to db, display form
etc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux