Validate an email address using PHP Codeigniter

$email = $this->input->post('email') ;
if( ! valid_email($email) )
{
  show_404 ("The email address provided is not a valid email." ) ;
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.