Javascript form validation with Regular Expressions

Discussion in 'Javascript' started by psuwebmasters, Jan 2, 2007.

  1. http://pastebin.ca/301561

    On that page is some code for a submittal form. I am trying to
    validate a couple fields, and check an email address for accuracy, but
    as it is, the form just gets handed off, regardless of whether or not
    it meets the validation. Any thoughts on why it is ignoring the
    Javascript?
     
    psuwebmasters, Jan 2, 2007
    #1
    1. Advertising

  2. psuwebmasters

    Randy Webb Guest

    psuwebmasters said the following on 1/2/2007 4:16 PM:
    > http://pastebin.ca/301561
    >
    > On that page is some code for a submittal form. I am trying to
    > validate a couple fields, and check an email address for accuracy, but
    > as it is, the form just gets handed off, regardless of whether or not
    > it meets the validation. Any thoughts on why it is ignoring the
    > Javascript?


    Start by putting alert statements in your function and see what is
    actually going on.

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Answer:It destroys the order of the conversation
    Question: Why?
    Answer: Top-Posting.
    Question: Whats the most annoying thing on Usenet?
     
    Randy Webb, Jan 2, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jay Douglas
    Replies:
    0
    Views:
    610
    Jay Douglas
    Aug 15, 2003
  2. Grigory Temchenko
    Replies:
    0
    Views:
    332
    Grigory Temchenko
    Dec 28, 2008
  3. Sudhakar Doddi
    Replies:
    1
    Views:
    157
    Chris Riesbeck
    Aug 22, 2003
  4. bnp
    Replies:
    4
    Views:
    326
  5. Noman Shapiro
    Replies:
    0
    Views:
    235
    Noman Shapiro
    Jul 17, 2013
Loading...

Share This Page