wrote:
>>All you should try to do is check the values on both client and server. If
>>the form seems incomplete, display it again filled with the submitted
>>values and tell the user to complete the form before sending it. The user,
>>having any sense, will see that pressing Enter at the time they did isn't
>>a good idea, and it should be last time they do it.
>
>
> I agree that is a better approach *where practicable* however it makes
> the assumption that all the fields are required to be completed, this
Not at all. Mike is saying check the values on the client
to prevent a wasted trip to the server. If the user doesn't
have javascript enabled, you have to rely on server-side
validation and response.
His comment regarding "tell the user to complete the form
before sending it" is in the context of telling the user to
complete all mandatory fields, I don't think he means they
must complete every field necessarily. Hopefully you have
on-screen help and tips so that the user knows which fields
are mandatory and those that aren't and are guided as to
correct formats, etc.
Cheers, Rob.