Email Control with PHP

Discussion in 'Web Programming' started by modernee, Apr 13, 2018.

  1. modernee

    modernee New Member

    Hello to everyone ! In this article I will show you how to control " Email with Php ".

    Do you want something in your form that you want to be warned when you do something like this instead of an email? We can use the filter_var () function in PHP to determine whether the email address is valid . This function only allows us to check the character in the browser.

    You can find the code example below.

    <? Php
    $ email = "";
    if (filter_var ($ eposta, FILTER_VALIDATE_EMAIL)) {
    echo 'E-mail address is valid';
    } else {
    echo 'E-mail address is invalid.';

Share This Page