Re: How to make a form retain its info
| From: | Michael Kimsal | Date: | Thu, 27 Jul 2000 19:12:23 +0000 |
| Subject: | Re: How to make a form retain its info | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8641@lists.php.net to get a copy of this message | ||
I found it interesting that the new ASP (ASPX ?) from MS
has a 'feature' to do just this - I think they call it active forms
or something like that. It's kind of a neat concept, as the
server doesn't output any funky HTML - it's standard, so it'd
work across the board (supposedly). However, it requires
extra form definition stuff - extra syntax to learn.
Brian (and others) have the right idea - submit to a page
(itself or another) which checks for errors and will redisplay
the same form with data prepopulated and appropriate
error messages.
I would disagree about the back button, at least with
current browsers. Having a link to take be 'back' a page or
two often involves more network traffic and overhead than
just hitting BACK once or twice - especially in IE. NS seems
to reload the pages normally, whereas IE tends to keep pages
cached. BACK is much quicker than 'click to go back', actually
taking me 'forward' to another page (one I was already at!)
"Brian T. Allen" wrote:
> I am almost positive that it is the browser, not the site, that determines
> whether field values are retained when you press the back button.
>
> The real solution to this is to design a form where they don't press the
> back button if there is an error. All forms on all of my sites submit to
> themselves, not another page, and display error messages in the page itself,
> with all of the information retained. Regardless of the browser or how they
> fill out the form, their information is retained until they are successful
> (unless they leave and come back of course).
>
> If I had my way the back button wouldn't exist. With good design it is
> obsolete, and can only cause problems from a technical stand point (like
> when they fill out a form then press the back button and it automatically
> resubmits the form, like IE5 does).
>
> Brian
>
> > At 12:35 PM 7/27/00 -0500, Chris Murley wrote:
> > >You Can't If they use the Back button, You could have them click a link
> > >and go back to the page, then store te data in a database.
> >
> > On my site, forms retain their values.. I don't know why, exactly, but I'm
> > thankful.
> > Lots to fill out, and if you leave some little thing off, it's very
> > annoying to hit the "Back" button and be faced with a blank form..
> >
> >
> > --
> > www.SpamWhack.com A pre-emptive strike against spam
> > Where's dave?
> > http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
> >
> > My transistor sings
> > with unintended parasitic
> > the smoke escapes
> >
> > By Jeff Stout
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
==========================
Michael Kimsal
http://www.tapinternet.com
734-480-9961