Question Details

Browse

email id validation

By Madhav - Jul. 22, 2008

are commercial vendors to validate the email ids


Answers

Add Answer
  1. By an anonymous user on Jul. 23, 2008

    Not sure what you're asking but here's some php code that can be used to validate email ids in an input box:


    if(isset($todo) and $todo=="test"){

    if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)){

    echo "Invalid email";

    }else{echo "Valid Email";}

    }


    0 Votes
Share your knowledge

Related Questions

Browse Get answers and share your expertise.