Posted by Gordon Burditt on 05/18/06 22:20
>All I need is to validate my form with 'post' method on the server
>because my terminals' JavaScript abilities are questionable.
JavaScript abilities are ALWAYS questionable because it can be
turned off, and it's not present in programs like telnet and CURL
that can be used in place of a browser. Input validation for
security or data-integrity should be done on the server, and possibly
also in JavaScript also for user-friendliness and immediate
notification of an error.
>So far I've created a global error flag that gets raised whenever a
>form field's value is invalid. However, though that accomplishes the
>task of validating the form, it DELETES all information from ALL form
>fields.
When you re-paint the form, you can output HTML to put the submitted
values (or just the ones that pass validation) into the new copy
of the form (VALUE="...").
Gordon L. Burditt
[Back to original message]
|