Title: Database entries &#8211; form validation
Last modified: August 20, 2016

---

# Database entries – form validation

 *  [embleme](https://wordpress.org/support/users/embleme/)
 * (@embleme)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/database-entries-form-validation/)
 * Hi!
 * I would like to know if it is normal that the database is filled even if the 
   valadation returns error… example :
    The field name is required, so if I forget
   to put my name and I press the submit button I have an alert that says, Please
   entre your name. Ok, so I enter my name and submit again… now I have registered
   correctly. When I go to see the database… I have 2 entries… One without the name
   and the other with the name! Is it possible to do not write in the database if
   the submission form is not all validated?
 * Thanks!
 * [http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/](http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/database-entries-form-validation/#post-3213926)
 * This is not something the CFDB can control. It is really at the mercy of the 
   form plugin (CF7 for example) to notify listeners that a valid form is submitted.
   When CFDB gets notified, it has no knowledge of whether or not there were validation
   issues. It just assumes it is OK and saved it to the DB.

Viewing 1 replies (of 1 total)

The topic ‘Database entries – form validation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/database-entries-form-validation/#post-3213926)
 * Status: not resolved