Email validation is a required action before submitting the user input in the server-side or inserts email into a database. It checks whether the user has provided a valid email address. You can check this easily using PHP.
Here we are receiving email from url, when form is submitted.
<?php $email=$_POST['email']; if(filter_var($email, FILTER_VALIDATE_EMAIL)){ echo "This is a valid email address"; }else{ echo "This is not a valid email address"; } ?>
Question and answer is powered by AnsPress.io