WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
Database entries - form validation (2 posts)

  1. embleme
    Member
    Posted 1 year ago #

    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/

  2. Michael Simpson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.