• Resolved jdppco

    (@jdppco)


    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

    (@codepeople)

    Hello @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.