Title: Implement own validation in php
Last modified: August 21, 2016

---

# Implement own validation in php

 *  [endcore](https://wordpress.org/support/users/endcore/)
 * (@endcore)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/implement-own-validation-in-php/)
 * Hi,
 * i use Contact Form 7 as a registration form for a tial account for our memberarea.
   After the user name is entered, I would like to check if it exists already in
   the database. If so, the form should output an error.
 * I have already tested the function “wpcf7_before_send_mail”. Unfortunately, i
   can only skip the mail ($skip_mail = true;) but not force an error message.
 * Is this possible?
 * Best Regards
    Christian
 * [http://wordpress.org/plugins/contact-form-7/](http://wordpress.org/plugins/contact-form-7/)

The topic ‘Implement own validation in php’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [endcore](https://wordpress.org/support/users/endcore/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/implement-own-validation-in-php/)
 * Status: not resolved