email validation php

PHOTO EMBED

Sun Dec 20 2020 21:33:51 GMT+0000 (UTC)

Saved by @shihab12169 #php

$email = test_input($_POST["email"]);
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
  $emailErr = "Invalid email format";
}
content_copyCOPY