+ Reply to Thread
Results 1 to 2 of 2

Thread: Required field VALID email address

  1. #1
    Join Date
    Jan 2007
    Posts
    8

    Question Required field VALID email address

    This seems like a really obvious request to me but I've searched high and low and not yet found the answer:

    I'd like my form to have a required field for the email address, but I'd also like the form script to check that the email address 'apprears' to be of the correct format. (ie ###@####.domain)

    Im guessing that I need to use the advanced features of the conditions field but dont really understand how ot do it.

    Any ideas please?

  2. #2
    Join Date
    Jun 2006
    Posts
    214

    Default Re: Required field VALID email address

    If you have the field "email" and it is required, just add the following hidden field.

    HTML Code:
    <input type="hidden" name="conditions" value=":#
     #TEST#email ~ /^[a-z0-9_.]+@[a-z0-9_]+\.([a-z0-9_.]+)*[a-z0-9_.]$/i #
     Please enter a valid email address.#" />

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 10:04 AM
  2. yet another no valid receipient
    By koocha in forum FormMail Subscription Support
    Replies: 6
    Last Post: 11-Feb-2004, 11:04 PM
  3. No valid recipients
    By Oktopuz in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Feb-2004, 06:48 AM
  4. detect valid email sender
    By richardsb24 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 01-Feb-2004, 05:16 AM
  5. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 10:04 PM

Bookmarks

Posting Permissions

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