ecommerce website design Shropshire, Custom & Ecommerce Website Designers, Web Page Design Company Shropshire UK Site Map
Phone:01743 272 609 Fax: 0709 286 1166
Home page, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKAbout spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKExpertise and services from spark computing, website design service at Shrewsbury, Shropshire. We supply website design service to business in Shropshire and whole UKOffice automatic solutions, online business solutions supplied by Spark computing, shrewsbury, shropshirecontact spark computing, shrewsbury, shroshire to discuss online business websites, custom software development

Javascript form validator script

29/07/09

Permalink 12:47:12 am, Categories: General IT articles  

Javascript form validator script

I have been using the a javascript from

http://www.javascript-coder.com/html-form/javascript-form-validation.phtml

for awhile and I totally like it. It’s very easy to use in order to validate the web form. What’s more, it is very easy to extend.

Here is how to extend the script so that it can find out if a user input the right confirm email address or not.

Code:

function confirmEmail ()
        {
          var frm = document.forms["custForm"];
          if(frm.email.value != frm.confirm_email.value)
          {
            sfm_show_error_msg("Confirm email does not match ");
            return false;
          }
          else
          {
            return true;
          }
        }
 
  frmvalidator.setAddnlValidationFunction("confirmEmail");

Tweet this! Facebook Live Yahoo bookmark Digg US google bookmark

Trackback address for this post:

https://www.sparkcomputing.co.uk/blogs/htsrv/trackback.php?tb_id=40

Trackbacks, Pingbacks:

No Trackbacks/Pingbacks for this post yet...

June 2022
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Spark Website Design, Shropshire

Technical articles on IT solutions.

Free information on office and home IT solutions; How to get a website running for your business; self-help e-commerce; and tips on website design.

Search

Misc

XML Feeds

What is this?