#1
  1. No Profile Picture
    SpeedyDan
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi,
    I used this expression to validate an e-mail address but something doesn't seem to work. Can anyone help me?

    Thanks, Dan
  2. #2
  3. No Profile Picture
    Robert_J_Sherman
    Guest
    Devshed Newbie (0 - 499 posts)
    What expression?

    Now, there is an email_validation class by Mario Lemos (sp).

    At php_classes website, which is a rather solid email validatiaon string..

    ------------------
    SnR Graphics,
    Low Cost Hosting and Web Development.
  4. #3
  5. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    I used this expression to validate an e-mail address but something doesn't seem to work. Can anyone help me?
    >>

    i don't know what you mean by that expression..

    try the following for validating an email address:

    if(!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+.)*([a-z0-9-]+)(.[a-z]{2,3}))$', $email)){
    //invalid email address
    echo "Invalid Email!! Try again";
    }

    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."
  6. #4
  7. No Profile Picture
    SpeedyDan
    Guest
    Devshed Newbie (0 - 499 posts)
    oops, copy/paste or user error...

    this expression:
    if (!eregi("([0-9a-z](20))@([0-9a-z](20)).([a-z](2,3)))",$mail)
    {blabla}

    where is that function for e-mail validation you talked about?


    ------------------
    See ya and thanks

    &Dan

Similar Threads

  1. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  2. mail() not working with ISP's mail server
    By wjones8050 in forum PHP Development
    Replies: 2
    Last Post: January 9th, 2004, 03:47 PM
  3. Mail validation using same page for...
    By Scurvy in forum PHP Development
    Replies: 1
    Last Post: May 27th, 2003, 01:59 PM
  4. Replies: 5
    Last Post: May 17th, 2003, 09:56 PM
  5. form mail validation
    By daza1 in forum Perl Programming
    Replies: 2
    Last Post: April 11th, 2003, 11:51 AM

IMN logo majestic logo threadwatch logo seochat tools logo