Validating HTML Forms

I l @ ve RuBoard

As an ASP developer working with Classic ASP, one of the most frequent tasks I encountered involved developing HTML forms to gather user inputs, usually for storage in a database of some kind. Often, someone wanted to be able to use this data at some point in the future (though just as often, this was not the case), and when the time came to use the data, the clients invariably wanted the data to be in a clean, consistent format. There are at least a dozen different ways to display a telephone number, for example, but usually only one method was to be used for a particular application.

To accomplish this task with Classic ASP, I learned JavaScript to perform the client-side validation. Early on, I thought that client-side validation was the way to go, because it provided a better user experience, but I soon learned that it was not difficult to bypass client-side validation, and for this reason, if it was worth validating, it was worth validating on the server.

NOTE

For more on how to bypass client-side validation, see this link:

http://www.aspalliance.com/stevesmith/articles/19990611asptoday.asp


I l @ ve RuBoard


Asp. Net. By Example
ASP.NET by Example
ISBN: 0789725622
EAN: 2147483647
Year: 2001
Pages: 154

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net