Title: [Plugin: WordPress Form Manager] validation before submitting?
Last modified: August 20, 2016

---

# [Plugin: WordPress Form Manager] validation before submitting?

 *  [iamopensource](https://wordpress.org/support/users/iamopensource/)
 * (@iamopensource)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-form-manager-validation-before-submitting/)
 * 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.

 * 0 replies
 * 1 participant
 * Last reply from: [iamopensource](https://wordpress.org/support/users/iamopensource/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-wordpress-form-manager-validation-before-submitting/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
