[PHP] Re: form submission error trapping

2002-02-25 Thread George Whiffen
Jason, You didn't mention Javascript checks. Personally I really dislike having to wati for a page to reload before finding out that I've just failed to fill in a field. The Javascript to do basic on-page checks is all pretty simple stuff. Of course this doesn't mean we can skip checking the

Re: [PHP] Re: form submission error trapping

2002-02-25 Thread Stewart G.
You do not need to use javascript. Simple create a form that submits to itself. And check the values, then reprint the form or redirect. Example: ?php if ($REQUEST_METHOD == POST) { $required = array (surname, age); $err_msg = ; while (list ($key) = each ($required)) { if