• Hi,

    I need to check before submitting if the domain of given e-mail id exists? So for this where should I place the following code:

    if(isset($_POST['text-4e9010aa8ab63'])) {
    $email = $_POST['text-4e9010aa8ab63'];
    $domain = strtok($email, "@");
    $domain = strtok("@");
    if (@getmxrr($domain,$mxrecords))
       echo "This ". $domain." EXIST!";
    else
       echo "This ". $domain." does not exist!";
    }

    Thanks

The topic ‘[Plugin: WordPress Form Manager] validation before submitting?’ is closed to new replies.