RE: [PHP] Re: your method for validating forms
| From: | Chris W. Parker | Date: | Thu, 02 Oct 2003 16:23:03 +0000 |
| Subject: | RE: [PHP] Re: your method for validating forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164776@lists.php.net to get a copy of this message | ||
Chris Shiflett <mailto:shiflett@php.net>
on Wednesday, October 01, 2003 11:18 PM said:
> There are definitely benefits to saving the extra request and response
> necessary to properly display errors, but I'm not so sure I would
> count usability as one of them. In addition, the user's perception of
> the site's general quality and professionalism may be a concern, and
> a JavaScript popup certainly doesn't improve this.
I went to an ecom site today that used js validation but in a very slick
way. There were no popups to be seen. Instead, when I tried to add a
product to my cart without specifying some attributes a little red
message magically appeared on the page that said "Please choose a
color".
A client-side validation class would be usable imo if it doesn't utilize
popups. Not being experienced with js I can imagine that not using
popups and still warning the customer of a mistake would be complicated.
I prefer server-side but that's mainly just because I don't like js.
Chris.