Is there a way to pass submission data to my MySQL database?

  • goncalo.pereira.1992
    Asked on April 8, 2019 at 12:17 PM

    Hello 

    I have a website with MySQL and i want to know if is possible inject the form data results directly in my database.

    Kind regards



  • Support_Management Jotform Support
    Replied on April 8, 2019 at 1:34 PM

    Hello @goncalo.pereira.1992 - You have two options to choose form:

    1. You can code this yourself using PHP. The only requirement from our end is for you to post your submission data to your thank you page.

    2. Or, you can also use Zapier to act as a middleman between the two.

  • appymes
    Replied on April 8, 2019 at 1:37 PM

    With this method you could also send images to the database?

    Thank you.

  • Support_Management Jotform Support
    Replied on April 8, 2019 at 2:28 PM

    Yes, it should. Our API documentation has a get method to fetch uploaded files, so you can post it in your thank you page too. As an example, here's a quick test form that posts data in the thank you page. Fill out that form, add an image to the file upload field, then submit it. You will see the details of the uploaded file in the thank you page. You can then send these data to your database using your PHP codes.

  • appymes
    Replied on April 8, 2019 at 3:16 PM

    Thanks, now I review it.

    And it is possible that the form is not sent to any email, that is, only to a database, but not to an email?

    Thank you.

  • Support_Management Jotform Support
    Replied on April 8, 2019 at 4:39 PM

    Sure, that's possible too. By default, when you build a form, an EMAIL NOTIFICATION will also be configured for you. If you don't want your submissions to send through email, you can delete the email notification.

    Complete guide: How-to-Delete-Notifications-Autoresponder