• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Lesson 6. Sending Email from a Web Form > Client-Side Form Validation

Client-Side Form Validation

Depending on what you entered in the form when you tested it, you may have exposed a problem. The form does not verify that users enter the correct type of data. For example, you could enter anything as the email address—nothing verifies that it meets the username@domain.com format. But Newland Tours staff won't be able to respond to messages if users forget to enter their entire email address, which could result in lost business.

In this task, you will use a simple Dreamweaver behavior that verifies the user entered the correct type of information. This verification is called form validation, and it comes in two varieties: client-side and server-side validation. Client-side validation verifies that data entered in the form meets the needs of the page from within the browser, the moment the user presses the Submit button and before the HTTP request is sent. Server-side validation occurs in a script on the server after the HTTP request is sent. Each form of validation has its own strengths and limitations.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint