RE: [PHP] form submission error trapping

From: Date: Sun, 17 Feb 2002 23:42:56 +0000
Subject: RE: [PHP] form submission error trapping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85131@lists.php.net to get a copy of this message
> > -----Original Message----- > > From: Steven Walker [mailto:steve@walkereffects.com] > > > > I created one php page that both displays the form and validates the > > input. When the user hits the submit button, it submits the data to > > itself. If anything is missing from the page, the form is reshown with > > missing fields highlighted and the other fields filled in. If on the > > other hand the info passes the validation test, the information is shown > > to screen a new button (hidden form) allows the user to continue. Only catch is, you have to build all that logic to populate your fields. Piece of cake when you have a simple form, not so easy when you have a dynamically-generated form (with a variable number of inputs) including multi-select buttons and the like. I guess the real challenge is converting a pre-existing page like the one I've described into one that can re-populate itself on an error condition. Building it that way from scratch is merely a programming task. - Ken kenzo@free-music.com

« previous php.general (#85131) next »