Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to validate an email field using php

<?php
   $email = "pattrick@tutorialspoint.com";
   // Validate email
   if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
      echo("$email is a valid email address");
   }
   else{
      echo("$email is not a valid email address");
   }
?>
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #validate #email #field #php
ADD COMMENT
Topic
Name
3+5 =