are commercial vendors to validate the email ids
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";} }
Answers
Add AnswerBy 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";}
}
Share your knowledge