Results 1 to 4 of 4

Thread: how to perform a simple field validation

  1. #1
    Join Date
    Aug 2006
    Posts
    6

    Default how to perform a simple field validation

    Hello,

    I'm quite new to php and formmail although I've been able to run formmail already in it's basic form without problems. I've a simple basic question.

    I've to build in simple checks on some fields like for a telephone-number field, it's only allowed to fill in numbers.

    How do I do this in formmail. I've tried to use a condition field but this won't working. Can somebody help me how to do this? Had it something to do with javascript or something.

    Help would be greatly appreciated.

    Bas

  2. #2
    Join Date
    Jun 2006
    Posts
    214

    Default Re: how to perform a simple field validation

    Read this post I think it has your answer.

  3. #3
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: how to perform a simple field validation

    russel still hasnt written a how to for conditions ... gee he's lazy (just kidding )

    conditions are tough! i've spent a million years figuring them out (i did get help too)

    heres what i use for a numeric field...ive tried to adapt it to phone numbers for you:
    Code:
    <input type="hidden" name="conditions1" value=":@
       @TEST@phone ~ /^\d+$/@Enter only digits for a phone number.@:" />
    hope that helps

  4. #4
    Join Date
    Aug 2006
    Posts
    6

    Default Re: how to perform a simple field validation

    Hello fooks,

    The example of the telephonenumber works!
    Thanks!

    Greetings
    Bas

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. syntax-validation for email-address?
    By yogi in forum Community Support
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  2. syntax-validation for email-address?
    By yogi in forum Features Questions
    Replies: 1
    Last Post: 09-Apr-2006, 04:05 PM
  3. Error message emails following form validation
    By dynamo in forum FormMail Subscription Support
    Replies: 1
    Last Post: 06-Mar-2006, 04:50 AM
  4. Email validation - but only if field completed
    By tvulucy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Aug-2005, 09:12 PM
  5. Can "Reply To" EM Field be set to email field
    By CWD in forum FormMail Subscription Support
    Replies: 2
    Last Post: 26-Jul-2005, 04:56 AM

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
  •