Title: MySql and Multiple Forms
Last modified: June 15, 2018

---

# MySql and Multiple Forms

 *  Resolved [jdppco](https://wordpress.org/support/users/jdppco/)
 * (@jdppco)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/mysql-and-multiple-forms/)
 * First off, this is hands down the easiest plugin to implement to your wordpress
   site and with the integration with other programs mean it has unlimited potential.
   I have been using for nearly 2 years and am amazed how adaptable, fast, and easy
   to use this plugin is.
 * When a form is submitted, the data can easily be submitted to a Mysql database
   by modifiying the *_insert_in_database.php file. I believe this feature is only
   available with the paid versions, which for what you get is a huge bargain.
 * My question is, is there a way to have multiple forms, with different information,
   submit form data to the mysql database via this same *insert_in_database.php 
   file?
 * Thank You – John

Viewing 1 replies (of 1 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/mysql-and-multiple-forms/#post-10405390)
 * Hello [@jdppco](https://wordpress.org/support/users/jdppco/),
 * The file you are referring is available with the Developer and Platinum versions
   of the plugin, and yes, you can define different database connections and queries
   per submitted form. The $params array includes a special item called “formid”
   with the id of the form’s submitted, so, you can use a code similar to:
 *     ```
       if($params['formid'] == 1)
       {
       // Enter here the database connection and queries corresponding to the form with id=1
       }
       elseif($params['formid'] == 2)
       {
       // Enter here the database connection and queries corresponding to the form with id=2
       }
       elseif($params['formid'] == 3)
       {
       // Enter here the database connection and queries corresponding to the form with id=3
       }
       ```
   
 * Best regards.

Viewing 1 replies (of 1 total)

The topic ‘MySql and Multiple Forms’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [MySQL database](https://wordpress.org/support/topic-tag/mysql-database/)

 * 1 reply
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/mysql-and-multiple-forms/#post-10405390)
 * Status: resolved