I got some trouble in the integration Jotform Submission to MySQ

  • Profile Image
    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 :



    This is a re-post of a comment on How to send Submissions to Your MySQL Database Using PHP

  • Profile Image
    VincentJay
    Answered on March 16, 2021 at 06: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


  • Profile Image
    Farras Naufal 
    Answered on March 23, 2021 at 10:41 PM

    Hello VincentJay,

    Here is my script code

    1616553567_605aa65f749dd_Untitled.png

    1616553585_605aa67103910_Untitled2.png



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

  • Profile Image
    ashwin_d
    Answered on March 24, 2021 at 07: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.