Re: Javascript form validation - comments please
On Sat, 6 Dec 2003 08:00:10 +0100, "Nico Schuyt" <nschuyt@hotmai l.com>
wrote:
[color=blue]
>Stephen Poley wrote:[color=green]
>> http://www.xs4all.nl/~sbpoley/webmatters/formval.html[/color]
>
>Nice! But why still apply js when the server side testing is so complete?[/color]
I do try to explain that on the page.
[color=blue]
>IMO the form should :
>- use cookies to prevent people have to fill in all the fields again next
>time[/color]
Could be appropriate in some cases, but OTOH some forms tend only to get
filled in once. And of course quite a lot of people have cookies
disabled. A bit out of the scope of this article.
[color=blue]
>- send a copy of the mail to the sender (I hate to make copies myself or not
>knowing later what exactly I submitted)[/color]
Good point, but not an appropriate feature of the form itself - that
would need to be done by the server script. (And one would of course
need anti-spammer precautions).
--
Stephen Poley
On Sat, 6 Dec 2003 08:00:10 +0100, "Nico Schuyt" <nschuyt@hotmai l.com>
wrote:
[color=blue]
>Stephen Poley wrote:[color=green]
>> http://www.xs4all.nl/~sbpoley/webmatters/formval.html[/color]
>
>Nice! But why still apply js when the server side testing is so complete?[/color]
I do try to explain that on the page.
[color=blue]
>IMO the form should :
>- use cookies to prevent people have to fill in all the fields again next
>time[/color]
Could be appropriate in some cases, but OTOH some forms tend only to get
filled in once. And of course quite a lot of people have cookies
disabled. A bit out of the scope of this article.
[color=blue]
>- send a copy of the mail to the sender (I hate to make copies myself or not
>knowing later what exactly I submitted)[/color]
Good point, but not an appropriate feature of the form itself - that
would need to be done by the server script. (And one would of course
need anti-spammer precautions).
--
Stephen Poley
Comment