I just finished one of my form pages, and I'm really happy with how it
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.
If you want, I can send you a link to my test site so you can check it
Steven J. Walker
On Sunday, February 17, 2002, at 02:22 PM, Jason Dulberg wrote:
> I am working on some error trapping for several forms on my site. After
> visiting a bunch of websites, I've noticed 2 common methods of
> error messages.
> 1. display an error box on a new page and force the user to hit the
> 2. display the form again with appropriate error text and pre-filled
> I have part of the error on the new page working but I'm running into
> infamous no contents in the form after going <back>.
> There are some useability issues with forcing the user to hit the back
> button -- some just don't want to bother.
> Is there a way to display the form w/original contents and error
> 'without' having to code the entire form twice? I have about 5 forms
> with 50
> fields or so each.
> What would be the best way to go about redrawing the form with the
> shown beside each field?
> Any suggestions are greatly appreciated.
> Jason Dulberg
> Extreme MTB
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php