Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Thanked 0 Times in 0 Posts

    Broken validation on email form.

    I have been modifying this form:
    to be part of an iPhone optimized site for the same client.

    The modified form works, however it no longer stops emails being sent that do not have the required fields filled in.
    The modified form is here:

    The original is built using a table which I have removed and replaced with divs. Didn't think I'd left anything out which would matter but I guess I must have.

    Please help, i don't really know any JavaScript except what I copy and paste.

  • #2
    New Coder
    Join Date
    Nov 2011
    Thanked 1 Time in 1 Post
    My knowledge of JS isn't greater than yours, but when viewing your source code it occured to me that you didn't validate by the dot (.) in the email address, only by the @. Try validating that too, with this model: http://www.w3schools.com/js/js_form_validation.asp.

    You can also try the solution of an online form builder that handles the validation as well as the submitted data. My recommendation is 123ContactForm, which I have used with very good results.

  • Users who have thanked Elia for this post:

    BenT (01-11-2012)


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts