Title: messs17's Replies | WordPress.org

---

# messs17

  [  ](https://wordpress.org/support/users/messs17/)

 *   [Profile](https://wordpress.org/support/users/messs17/)
 *   [Topics Started](https://wordpress.org/support/users/messs17/topics/)
 *   [Replies Created](https://wordpress.org/support/users/messs17/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/messs17/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/messs17/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/messs17/engagements/)
 *   [Favorites](https://wordpress.org/support/users/messs17/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Multiple forms submit to one database](https://wordpress.org/support/topic/multiple-forms-submit-to-one-database/)
 *  [messs17](https://wordpress.org/support/users/messs17/)
 * (@messs17)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-submit-to-one-database/page/3/#post-5583818)
 * #3, the contact form database with all of the form submission data for a specific
   form. So what I would like is to have the contact form submission placed into
   its correct form name database($myForms) while at the same time duplicating that
   data into my consolidated database($myUnifiedForm) with all of my other forms’
   data. Currently the code takes the form submission data and places it in the 
   consolidated form, bypassing the original form database completely.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Multiple forms submit to one database](https://wordpress.org/support/topic/multiple-forms-submit-to-one-database/)
 *  [messs17](https://wordpress.org/support/users/messs17/)
 * (@messs17)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-submit-to-one-database/page/3/#post-5583816)
 * Thank you for the response Michael. I’m a php novice and am not sure which part
   of my code is removing it from the original database.
 *     ```
       if ($formData && in_array($formData->title, $myForms)) {
              $formData->posted_data['From Form'] = $formData->title; $formData->center['Center'] = $formData->title; $formData->title = $myUnifiedForm;
           }
           return $formData;
       ```
   
 * Above is currently what I have and I can see it is changing the title, but I’m
   not sure what the alternative would be to keep the original title and move a 
   copy of the data to the consolidated database.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form DB] Multiple forms submit to one database](https://wordpress.org/support/topic/multiple-forms-submit-to-one-database/)
 *  [messs17](https://wordpress.org/support/users/messs17/)
 * (@messs17)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/multiple-forms-submit-to-one-database/page/3/#post-5583814)
 * Hi Michael,
 * I am using your code and it is working great to consolidate all of my contact
   forms. Thanks for that!
 * Right now, the code makes it so that form entries are only stored in the consolidated
   database. I was wondering if there is a line of code that I can add to the current
   code to make it keep the entry in the original form database in addition to creating
   a duplicate entry in the consolidated database. Is this possible?
 * Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)