Practical eCommerce

 

Video Tutorial: Validating A Form With JavaScript

Useful for client-side validation

Author: Brian Getting
Publish Date: September 20, 2007
Category: Design & Development
Tags: video, tutorial, javascript

View Tutorial In form validation two common questions often arise. The first is how do you ensure once you've asked for an email address on an online form, you actually get one? The second is how do you make sure your customers include a name and phone number when they contact you from your website? The answer lies in form validation, or checking a form's data before it is submitted, and JavaScript is particularly useful for client-side validation.

In this tutorial, we will create an online contact form our visitors could use to send us an email message. To guarantee they include their name, email address and a short message when they submit the form, we will use a simple JavaScript function to illustrate how validation works. By checking our form data before we submit the form, we will eliminate the potential of receiving a blank email from JavaScript enabled users.

Software Used: TextMate
Additional Files: form_validation.zip

Click the image to launch the tutorial.

This video tutorial requires Flash Player version 8 or above. Please forward us your ideas for additional video tutorials, via our Contact Us form.

Sponsored links

Buy A Sponsored Link

Add a Bookmark: Add 'Video Tutorial: Validating A Form With JavaScript' to Del.icio.us Digg 'Video Tutorial: Validating A Form With JavaScript' on Digg.com Submit 'Video Tutorial: Validating A Form With JavaScript' to reddit.com Blink 'Video Tutorial: Validating A Form With JavaScript' Add 'Video Tutorial: Validating A Form With JavaScript' to dzone Seed 'Video Tutorial: Validating A Form With JavaScript' on Newsvine Add 'Video Tutorial: Validating A Form With JavaScript' to Furl Add 'Video Tutorial: Validating A Form With JavaScript' to Spurl Add 'Video Tutorial: Validating A Form With JavaScript' on simpy.com Add 'Video Tutorial: Validating A Form With JavaScript' to fark.com BlogMark 'Video Tutorial: Validating A Form With JavaScript' Add 'Video Tutorial: Validating A Form With JavaScript' to Yahoo! myweb2 Add 'Video Tutorial: Validating A Form With JavaScript' to wists.com Stumble It!

7 Comments

Sign-up to receive EcommerceNotes, our acclaimed email newsletter.

View A Sample | Privacy

Inside Practical eCommerce