Reply to Re: Server-Side Form Validation

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация