I got some trouble in the integration Jotform Submission to MySQ

  • Farras Naufal
    Asked on March 16, 2021 at 12:42 PM

    Hello. I got some trouble in the integration Jotform Submission to MySQL, i'm using php 7 but the complete script in tutorial "How to send Submissions to Your MySQL Database Using PHP" is doesn't work for me ):

    Please help me to fix it, here is my script code :

  • VincentJay
    Replied on March 16, 2021 at 6:05 PM

    Hi,

    How can we help you?

    Unfortunately, we didn't receive the code you're referring to. Also, please share the form so we can check it. To post a screenshot, please follow this guide: https://www.jotform.com/help/438-how-to-post-screenshots-to-our-support-forum


  • Farras Naufal
    Replied on March 23, 2021 at 10:41 PM

    Hello VincentJay,

    Here is my script code

    1616553567 605aa65f749dd Untitled Screenshot 10

    1616553585 605aa67103910 Untitled2 Screenshot 21



    can you help me to solve this code problem for integration The Jotform Submission to MySQL sir ?

  • Ashwin JotForm Support
    Replied on March 24, 2021 at 7:29 AM

    I did check your form and found that you set a custom thank-you page URL and redirecting your users to the following page: http://localhost/sucofindo1/db.php

    Are you testing your form locally from where this localhost site is accessible? I am not a PHP expert but I do not see any issue with your code. Do you get any error message when the user is redirected to your PHP page?

    The first thing I would suggest you to please just print the POST data in your web page and see if the data is being posted successfully or not.

    You can comment all the script code and just use the following code to print the data:

    <?php
      print_r($_POST);
    ?>

    Do try it out and get back to us if the data is being posted correctly.

    We will wait for your response.