My Eyes Hurt! Please Help Me Fix JavaScript Form Validation!

Discussion in 'JavaScript' started by mentos514, May 27, 2009.

  1. #1
    Hi,

    I can't seem to figure out how to remove the required text fields in the following boxes: Telephone Number and E-mail Address.

    Can someone please take a look at the source: https://www.quickextenderpro.com/secure-payment-form.html

    how can I make that information input no longer required?

    Thx for any imput!! :)
     
    mentos514, May 27, 2009 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    The link does not work.

    However, the simple solution: turn off javascript.

    The more in-dept solution: remove any triggers on the codes for the phone and email-field - ie, remove any javascript in the code regarding these fields, and remove any IDs added to the fields. If the javascript has no triggers, it won't fire.

    The good solution: recode the whole damn thing to use server-side validation (php or something similar) and avoid javascript as form validation all-together - it's not safe, and basically useless except for making alertboxes and easily change looks of the unvalidated form fields and such (but this can also easily be done serverside and with CSS).
     
    PoPSiCLe, May 27, 2009 IP
  3. mentos514

    mentos514 Active Member Affiliate Manager

    Messages:
    292
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    88
    #3
    hi, thx for the input. I'm not really a very good coder and dont have the time to do the whole page again.

    Can someone please take a look at the source fill me in? i also fixed the link ;)
     
    mentos514, May 27, 2009 IP