Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • #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.

    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.

    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)