action.php-
if (!stristr($em,"@") OR !stristr($em,".")) {
$msg="Your email address is not correct
";
$status= "NOTOK";
}
else {
echo " Your email address is OK ";
}
or
$email = input($_POST["email"]);
if (!filter_var($email, FILTER_VALIDATE_EMAIL))
{
$emailErr = "Invalid format and please re-enter valid email";
}
or
<html>
<body>
<h2>Email Field</h2>
<form action="/action_page.php">
E-mail:
<input type="email" name="email">
<input type="submit">
</form>
</body>
</html>
action.php-note -write there email validation code....