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
Last edited by Nick Evan; Nov 9th, 2007 at 6:07 am.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Offline 4,132 posts
since Oct 2006