View Single Post
Old 02-02-2012, 01:12 AM   #2
jimimartin52
Registered User
 
Join Date: Jan 2012
Posts: 3
Hi! Today we are going to review a very important part of the development process of a web application. The validation of users input. This is one the trickiest parts of any application at all. Why is that? Because the developer doesn't control it. You can write the best algorithm in the world, but still if it includes user input there is a place for mistakes. Even if we put some coplicated logic to prevent the input of wrong symbols, check the consistence of the data and do whatever possible to make sure that it is all OK, there is still possibility that the users enter the wrong number. Though all said, we must try to prevent the most of human errors and the best way to do this is by using Regular Expressions.

Basicly Regular Expressions are used for string matches. They are based on search and pattern matching strings in text. A lot of books are written about them, there are even some programming languages designed especially for Regular Expressions. But today we are just going to take a brief look at how regular expressions can help us with user input. First of all I suggest that you get familiar with some basic concepts of the language.
Now let's get to work. I'll present some of the most common problems with user input. I'm pretty sure that you met most of them if not all. We are going to create a registration form with required input fields. They are as follows:
- Full Name
- Address
- Passport
- Email
- Phone
- Zip code
- Date
- Username
- Password

-----------------------------------
http://www.bestwebsol.com
__________________
Searching for Best Web Design, Development or Affordable SEO Service in USA? Bestwebsol.com provides professional full-cycle services: web development, custom web design & Best SEO services with guaranteed traffic increase and higher ranking.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
jimimartin52 is offline   Reply With Quote