3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by hopalongcassidy
0

hi,
how to validate email id in php...please send some code....lydia

something like this perhaps:

$email = "a@b.c"; 
 
if (stristr($email, "@") == false || stristr($email, ".") == false)
{ 
    die("No valid email");
 }
else
{
    echo("email = valid");
}

Didn't try it, but it might just work :)

Niek

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.